首页 新闻 会员 周边 捐助

急需:silverlight调用web service问题...base.EndInvoke...

0
悬赏园豆:50 [已关闭问题]

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,已经可以实现跨域的服务访问!

基于目前的这种配置情况,有时也可以运行通过,很不稳定,不知为何??

这个问题让我很疑惑,我查资料花了一上午没能解决,希望高手指点!谢谢啦,@@!

 

寻找明天的主页 寻找明天 | 初学一级 | 园豆:50
提问于:2009-06-20 15:41
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册