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

- Website project 
- Webservice project

基本上,网站功能调用网络服务方法来选择/插入/更新数据。

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

我在这里想念什么?

4

1 回答 1

0

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

于 2012-09-06T16:26:39.907 回答