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

基本的に、Webサイト関数はwebserviceメソッドを呼び出してデータを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

テーブルがないので、私のWebサイトに次のページが表示されます。

テーブル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

データベース接続は、Windows認証ではなく、SQL認証である必要があります。私の接続文字列は、ユーザーIDとパスワードを使用したSQL認証ではなく、Windows認証を使用してデータベースに接続していました。

于 2012-09-06T16:26:39.907 に答える