こんにちは、WP7デバイスとWCFを使用するのはこれが初めてです。
WCFサービスを使用して一元化されたデータベースと通信しています。エミュレーターでアプリを実行しようとすると、完全に正常に機能しますが、デバイスに展開すると、次のエラーメッセージが表示されます。
EndPointNotFoundException
There was no endpoint listening at http://10.11.32.211:88/ABCService/Service.svc
that could accept the message. This is often caused by an incorrect address or SOAP
action. See InnerException, if present, for more details.
私のWeb.configファイル
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<!-- <client>
<endpoint address="http://10.11.32.211:88/ABCService/Service.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IABCService"
contract="ABCServiceReference.IABCService" name="BasicHttpBinding_IABCService" />
</client> -->
<bindings>
<basicHttpBinding>
<binding name="basicHttpBinding_ABCService" sendTimeout="00:01:30" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Buffered">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxNameTableCharCount="16384" maxBytesPerRead="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true" />
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
</configuration>
アプリケーション構成ファイル
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IABCService" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://10.11.32.211:88/ABCService/Service.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IABCService"
contract="ABCServiceReference.IABCService" name="BasicHttpBinding_IABCService" />
</client>
</system.serviceModel>
</configuration>
内部例外
"The remote server returned an error: NotFound."
スタックトレース
at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.OnGetResponse(IAsyncResult result)
at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClassa.<InvokeGetResponseCallback>b__8(Object state2)
at System.Threading.ThreadPool.WorkItem.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadPool.WorkItem.doWork(Object o)
at System.Threading.Timer.ring()
WIFIを使用してLANに接続しました