0
保存にアクセスしようとしているときに「リモートサーバーがエラーを返しました:(413)要求エンティティが大きすぎます」エラー私のweb.configをダブルチェックしたところ、正しいと思われました。私は2日以来これを解決しようとしていましたが、私はgoogleで見つけたものすべてを試しましたが、失敗しました。「リモートサーバーからエラーが返されました:(413)エンティティが大きすぎます」エラー
このMVCアプリケーション(クライアント)以下
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="IPersonProfileServiceEndpoint" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2000000" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
<binding name="IClientAssessmentEndpoint" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2000000" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None">
<transport clientCredentialType="Basic" />
</security>
</binding>
<binding name="ICMSServiceEndpoint" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2000000" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None">
<transport clientCredentialType="Basic" />
</security>
</binding>
<binding name="BasicHttpBinding_ICMSService" />
</basicHttpBinding>
<wsHttpBinding>
<binding name="IPersonProfileServiceEndpoint" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2000000" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
<binding name="ICMSServiceEndpoint" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2000000" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
<binding name="IClientAssessmentEndpoint" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2000000" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="https://servicetest.iltest.illinois.gov/AGE/PersonProfile/PersonProfileWCFService.svc" binding="wsHttpBinding" bindingConfiguration="IPersonProfileServiceEndpoint" contract="PersonProfileWCFService.IPersonProfileWCFService" name="IPersonProfileServiceEndpoint">
<identity>
<dns value="illinois.gov" />
</identity>
</endpoint>
<endpoint address="http://localhost:24500/Services/ClientAssessmentService.svc" binding="basicHttpBinding" bindingConfiguration="IClientAssessmentEndpoint" contract="ClientAssessmentWCF.IClientAssessment" name="IClientAssessmentEndpoint" />
<endpoint address="http://localhost:24500/Services/CMSService.svc" binding="basicHttpBinding" bindingConfiguration="ICMSServiceEndpoint" contract="CMSService.ICMSService" name="ICMSServiceEndpoint" />
</client>
<behaviors>
<serviceBehaviors>
<behavior name="debug">
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<!--<services>
<service name="TestService" behaviorConfiguration="debug" />
</services>-->
からweb.configファイル内system.servicemodelは、WCFプロジェクト(サーバー)
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
<serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBindingConfig" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
<readerQuotas maxDepth="2000000" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
</basicHttpBinding>
<!--<wsHttpBinding>
<binding name="wsHttpBindingConfig" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
<readerQuotas maxDepth="2000000" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
</wsHttpBinding>-->
</bindings>
<services>
<!--<service name="CMS.WCFApp.Services.CaseManagementService" behaviorConfiguration="ServiceBehavior">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBindingConfig" bindingNamespace="http://localhost:24500/Services/CaseManagementService.svc" name="ICaseManagementServiceEndpoint" contract="CMS.WCFApp.ServiceContract.ICaseManagementService">
--><!--<identity>
<dns value="illinois.gov"/>
</identity>-->
<!--
</endpoint>
</service>
<service name="CMS.WCFApp.Services.ClientAssessmentService" behaviorConfiguration="ServiceBehavior">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBindingConfig" bindingNamespace="http://localhost:24500/Services/ClientAssessmentService.svc" name="IClientAssessmentEndpoint" contract="CMS.WCFApp.ServiceContract.IClientAssessment">
-->
<!--<identity>
<dns value="illinois.gov"/>
</identity>--><!--
</endpoint>
</service>-->
<service name="CMS.WCFApp.Services.CMSService.svc" behaviorConfiguration="ServiceBehavior">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBindingConfig" bindingNamespace="http://localhost:24500/Services/CMSService.svc" name="ICMSServiceEndpoint" contract="CMS.WCFApp.ServiceContract.ICMSService">
<!--<identity>
<dns value="illinois.gov"/>
</identity>-->
</endpoint>
</service>
<!--<service name="CMS.WCFApp.Services.CManagementService" behaviorConfiguration="ServiceBehavior">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBindingConfig" bindingNamespace="http://localhost:24500/Services/CManagementService.svc" name="ICManagementServiceEndpoint" contract="CMS.WCFApp.ServiceContract.ICManagementService">
--><!--<identity>
<dns value="illinois.gov"/>
</identity>--><!--
</endpoint>
</service>-->
</services>
からweb.configファイルで私のsystem.servicemodelです
残りの ''設定を投稿できますか?バインディングを定義している可能性はありますが、バインディングは割り当てられていません。これは、あなたの値ではなく、デフォルト値を取得していることを意味します。また、サービスとクライアントの両方のweb.configを投稿してください。 –
Tim