2009-03-25 2 views
0

アプリケーションを実行すると、このエラーが発生します。理由は何ですか?'/'アプリケーションのサーバーエラー

 
The remote server returned an error: (404) Not Found. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found. 

Source Error: 

Line 45771:  public sample.Services.Acs.DCShopLite GetShopLiteByName(string name) 
Line 45772:  { 
Line 45773:   return base.Channel.GetShopLiteByName(name); 
Line 45774:  } 
Line 45775:   


Source File: c:\Projects\ACS\sample.Services.Acs.Storefront\Services\services.g.cs Line: 45773 

Stack Trace: 

[WebException: The remote server returned an error: (404) Not Found.] 
    System.Net.HttpWebRequest.GetResponse() +5314029 
    System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +54 

[EndpointNotFoundException: There was no endpoint listening at http://acslocal11.sample.com/Services/StoreService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.] 
    System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +7596735 
    System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +275 
    sample.Services.Acs.IStoreService.GetShopLiteByName(String name) +0 
    sample.Services.Acs.StoreServiceClient.GetShopLiteByName(String name) in c:\Projects\ACS\sample.Services.Acs.Storefront\Services\services.g.cs:45773 
    ASP.global_asax.Session_Start(Object sender, EventArgs e) in c:\Projects\ACS\sample.Acs.Storefront\Global.asax:30 
    System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +8779824 
    System.Web.SessionState.SessionStateModule.CompleteAcquireState() +237 
    System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +504 
    System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +66 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155 


Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074

答えて

1

エラーメッセージはかなり明白です - 何もアクセスしようとしているhttp://acslocal11.aivea.com/Services/StoreService.svcを聞いていません。

Webサービスが実際に動作していることをどのように確認しましたか? WebサーバーとWebサービスの間にファイアウォールがあるのでしょうか?

+0

の初心者です。正しく実行されていることを意味するエラーが表示されないbatファイルを実行します。 – peter

+0

どのようなバットファイルですか?それはどこで実行されていますか?あなたはブラウザを使ってWebサーバーからWebサービスを見ることができますか? wsdlを取得できるかどうかを確認してください。 –

+0

これは私のdebug.batの内容です @ECHO OFF "C:\ Windows \ Microsoft.NET \ Framework \ v3.5 \ MSBuild.exe" "Aivea.Acs.sln"/property:Configuration = Debug/noconsolelogger /logger:FileLogger,Microsoft.Build.Engine;logfile=ACSDebugBuild.log – peter

1

参照のInnerException、存在する場合、 詳細について。

これを試す必要があります。

+0

どうすればいいですか?私はasp.net – peter

関連する問題