ASP.Net Web Service在部署后不返回任何数据

时间:2012-06-05 15:51:10

标签: asp.net web-services deployment iis-7 web

Visual Studio 2010
.Net framework 4.0
IIS 7.0
Windows Server 2008
within a visual studio solution I have: 

- Website project 
- Webservice project

基本上,Website函数将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

我在这里想念的是什么?

1 个答案:

答案 0 :(得分:0)

数据库连接应该是SQL身份验证,而不是Windows身份验证。 我的连接字符串使用Windows身份验证连接到数据库,而不是使用用户ID和密码的SQL身份验证。

相关问题