[英]ASP.Net Web Service returns no data after deployment
Visual Studio 2010
.Net framework 4.0
IIS 7.0
Windows Server 2008
within a visual studio solution I have: - Website project - Webservice project
基本上,网站功能会调用Web服务方法来进行SELECT / INSERT / UPDATE数据。
This works fine when I try to run through the visual studio, but does not work on the server.
- using Visual Studio 2010 express on the server, the solution compiles successfully and gets the requested data.
- however, if I try to retrieve some data from deployed web service like:
http://localhost/LTC_webservice/LTCWebService.asmx/GetWorkTypes
我没有桌子..所以我的网站上显示此页面:
找不到表0。
IIS Settings:
- using ASP.Net v4.0 application pool
- Managed Pipeline = Classic
- ISAPI and CGI Restrictions: allowed on ASP.NET v4.0.30319
我在这里想念什么?
数据库连接应该是SQL身份验证,而不是Windows身份验证。 我的连接字符串是使用Windows身份验证而不是具有用户ID和密码的SQL身份验证连接到数据库的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.