The remote server returned an error: NotFound
public Shareidea.Web.UI.Control.Workflow.Designer.HRS_Service.UploadFileResponse EndUploadFile(System.IAsyncResult result) {
object[] _args = new object[0];
Shareidea.Web.UI.Control.Workflow.Designer.HRS_Service.UploadFileResponse _result = ((Shareidea.Web.UI.Control.Workflow.Designer.HRS_Service.UploadFileResponse)(base.EndInvoke("UploadFile", _args, result)));
return _result;//当运行到这句话是出错:
}
The remote server returned an error: NotFound
Web.config中的配置为:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="WSE_HRSSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="165536" maxBufferPoolSize="1524288" maxReceivedMessageSize="165536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="18192" maxArrayLength="116384"
maxBytesPerRead="14096" maxNameTableCharCount="1116384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://127.0.0.1:8088/BaService/WSE_HRS.asmx"
binding="basicHttpBinding" bindingConfiguration="WSE_HRSSoap"
contract="WebServiceRefer.WSE_HRSSoap" name="WSE_HRSSoap" />
</client>
</system.serviceModel>
在服务项目的根目录下,我已近配置上:clientaccesspolicy.xml,已经可以实现跨域的服务访问!
基于目前的这种配置情况,有时也可以运行通过,很不稳定,不知为何??
这个问题让我很疑惑,我查资料花了一上午没能解决,希望高手指点!谢谢啦,@@!