我收到不一致的错误,
成功执行服务方法后(在服务和客户端之间的数据传递之间)
同时执行服务方法本身。
如果我们使用低数据[CSV和DB中的数千个数据] ,它将执行而不会导致任何问题
我有谷歌并在配置文件中尝试了很多,如果有什么需要检查 IIS 级别,请帮助我。
设想:
我上传了文件(CSV),其中包含 1,00,000(10 万)条记录,DB 也包含 10 万条记录,要求是将 csv 的每条记录与 DB 记录进行比较,并给出记录不同的合并输出(通过比较每个字段)。
客户端到服务:文件通过字节格式传输 服务到客户端:集合对象 [通用列表格式]
使用的技术和代码 Entity framework-4 用于获取初始记录。使用正常的 foreach/for 循环进行比较。用于现场比较的开关。WCF、Silverlight、c# 和 .Net 4.5
下面是我的设置,
服务配置:
<basicHttpBinding>
<binding name="basicHttpBinding_IUploadService" maxBufferPoolSize="2147483647" closeTimeout="00:45:00"
openTimeout="00:45:00" receiveTimeout="00:45:00" sendTimeout="00:45:00" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
<service name="Namespace.UploadService">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_IUploadService"
contract="Namespace.IUploadService" >
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
<behavior name="">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<ServiceErrorBehaviour/>
</behavior>
客户端配置:
<binding name="BasicHttpBinding_IUploadService" closeTimeout="00:45:00"
openTimeout="00:45:00" receiveTimeout="00:45:00" sendTimeout="00:45:00"
maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<security mode="Transport" />
</binding>
<endpoint address="https://localhost/URL/Upload.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IUploadService"
contract="UploadService.IUploadService" name="BasicHttpBinding_IUploadService" />
网络配置:
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<authentication mode="Windows"/>
<httpRuntime maxRequestLength="2147483647" executionTimeout="2700" enableVersionHeader="false"/>
<pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/>
</system.web>
错误:
System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object sendState)
--- End of inner exception stack trace --- & ...
字节大小 客户端到服务器(输入): 10Mb [以字节格式]& 服务器到客户端(输出):如果它的数量很小,那么很好,否则问题[期望超过输入大小]
也使用 https不是 http。
谢谢, S.Venkatesh