8,736
社区成员
发帖
与我相关
我的任务
分享
public bool EndUpdate(out SilverlightApplication1.MyDataService.CustomException ServiceError, System.IAsyncResult result) {
object[] _args = new object[1];
bool _result = ((bool)(base.EndInvoke("Update", _args, result))); //~~~~~~这段报错~~~~~~~~~~~~~~~
ServiceError = ((SilverlightApplication1.MyDataService.CustomException)(_args[0]));
return _result;
}
<service name="BasicHttpBinding_IGetData">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGetData" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<service name="WcfService1.GetData">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGetData" contract="WcfService1.GetData" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<!--<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>-->
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IGetData" maxBufferPoolSize="2147483647" closeTimeout="00:10:00" openTimeout="00:10:00" sendTimeout="00:10:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647"
maxStringContentLength="2147483647"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="BasicHttpBinding_IGetData">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGetData" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceTimeouts transactionTimeout="00:10:00"/>
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
<!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->
<serviceMetadata httpGetEnabled="true"/>
<!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息 -->
<serviceDebug includeExceptionDetailInFaults="false"/>
<serviceThrottling maxConcurrentCalls="1000000" maxConcurrentSessions="1000000" maxConcurrentInstances="1000000"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
<binding name="customBinding0">
<binaryMessageEncoding maxReadPoolSize="2147483647" maxWritePoolSize="2147483647"
maxSessionSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binaryMessageEncoding>
<httpTransport maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
keepAliveEnabled="true" maxBufferSize="2147483647" transferMode="Streamed" />
</binding>