简体   繁体   中英

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 

Basically, Website function calls webservice methods to SELECT/INSERT/UPDATE data.

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

I get no tables.. so my website gets this page:

Cannot find table 0.

IIS Settings: 
- using ASP.Net v4.0 application pool 
- Managed Pipeline = Classic
- ISAPI and CGI Restrictions: allowed on ASP.NET v4.0.30319

what am I missing here?

The database connection should be SQL authentication, not windows authentication. My connection string was connecting to the database using the windows authentication, not the SQL authentication with user id and password.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM