I have a Class Project and a Application.
the Application use that class as dll.
I want to use the config of Application in my dll or class project.
how to do that ?
View Complete Post
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.