我試圖嘗試使用服務。我試圖將其部署到服務器並使用它,但我得到此錯誤。我創建了一個Web應用程序並添加了一個wcf服務。我得到這個試圖使用wcf服務,但我認爲我的web.config文件不正確
服務器堆棧跟蹤: 在System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest的要求,HttpWebResponse響應,HttpChannelFactory工廠,引發WebException responseException,ChannelBinding channelBinding) 在System.ServiceModel.Channels.HttpChannelFactory .HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan超時) at System.ServiceModel.Channels.RequestChannel.Request(Message message,TimeSpan timeout) at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message,TimeSpan timeout) at System。 ServiceModel.Channels.ServiceChannel.Call(字符串操作,單向布爾值,Prox在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime操作) 在System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage消息)
(yOperationRuntime操作,Object [] ins,Object []輸出,TimeSpan超時)異常[0]時重新拋出: 在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData & MSGDATA,的Int32類型在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(即時聊天reqMsg,即時聊天retMsg) ) at IBusinessV1.CheckForUpdate(String currentVersion) at BusinessV1Client.CheckForUpdate(String currentVersion)
我的配置有問題嗎?
<system.serviceModel>
<services>
<service name="SP.WebWCF.Business_v1">
<endpoint
address="https://services.mydomain.com"
binding="basicHttpBinding"
bindingConfiguration=""
contract="SP.WebWCF.IBusiness_v1"
listenUri="/" isSystemEndpoint="true" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
託管此服務的位置:IIS還是自託管的? – 2010-11-14 11:05:05