快,,救救我吧!!
如何通过web.config改变[webService(Namespace="")]
<appSettings>
<add key="httpStr" value="http://127.0.0.1/wstService"/>
</appSettings>
[WebService(Namespace=ConfigurationSettings.AppSettings["httpStr"])]
出错如下:
D:\gzWeb\wstService\Service.asmx.cs(17): 属性参数必须是常数表达式、typeof 表达式或数组创建表达式
怎么办????