Is it ok to change the config file after publishing a site? I use shared hosting.
It would be nice to do things like change connection strings and smtp settings with out having to republish the site.
View Complete Post
I have a windows server and would like to add php code to my .html
files. I know this is possible with linux servers with .htaccess files
but how do I do it with a windows server? I called my hosting provider
and they said I need to forget about .htaccess and look into the web.config file. What I want is
for my server to read html files and execute any php code it finds. I
can't find the code I need to add to the web.config file.
I am quite new to all this. I switched my server to a windows server with IIS 7 a few months ago. But I find asp.net way too difficult for this beginner. I can't switch back to a linux server since my business partner is creating pages with ASP.net
I just want to execute php code inside of html files. Any help is greatly appreciated, thank you.
I am trying to put the namespace value as a key in web.config file, so that when I deploy this on production, I just have to change the namespace key in the config file only, not on all of my webservice cs files. But When I try to browse this webservice after changing this code I get compilation error.
<add key="NameSpace" value="http://csi-dev-deep/"/>
MyWebService.cs (this code works)
[WebService(Namespace = "http://csi-dev-deep/")]
MyWebService.cs code changed to the following gives compilation error.[WebService(Namespace = ConfigurationManager.AppSettings["NameSpace"].ToString())]
[WebService(Namespace = ConfigurationManager.AppSettings["NameSpace"].ToString())]
Compiler Error Message: CS0182: An attribute argument must be a constant
expression, typeof expression or array creation expression of an attribute
Your help is highly appreciated.