問題描述
分析器錯誤
說明: 在分析向此請求提供服務所需資源時出錯。請檢查下列特定分析錯誤詳細信息並適當地修改源文件。
分析器錯誤信息: 未能創建類型“Service1”。
源錯誤:
行 1:
源文件: /WEB/Service.asmx 行: 1
解決方法
在web.config中添加
<!--Webservice配置__begin--> <location path="WebServices"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <location path="Client"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <system.web> <webServices> <protocols> <add name="HttpPost" /> <add name="HttpGet" /> </protocols> </webServices> </system.web> <!--Webservice配置__end-->