Ich habe die anderen Beiträge zu diesem Thema gesehen und denke, ich habe alles versucht und kann nicht scheinen, um diesen Fehler zu beheben, wenn Sie versuchen, eine größere Datei zu speichern. Ich habe die maxReceivedMessageSize und alle anderen größenbezogenen Konfigurationen in beiden Abschnitten der Konfigurationsdateien hochgefahren und auch die uploadReadAheadSize über den IIS-Manager erhöht. Ich sehe nicht, was ich vermisse, also poste ich meine Config-Dateien in der Hoffnung, dass jemand etwas falsch finden könnte.413 Request Entity zu groß WCF
Service-config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5rge93gerg9" requirePermission="false" />
</configSections>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" maxRequestLength="2147483647" />
</system.web>
<system.serviceModel>
<client>
<endpoint address="/" binding="basicHttpBinding" bindingConfiguration="MyHttpBinding" contract="*" name="Default" />
</client>
<bindings>
<basicHttpBinding>
<binding name="MyHttpBinding" hostNameComparisonMode="Exact" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>
<modules runAllManagedModulesForAllRequests="true" />
<directoryBrowse enabled="true" />
</system.webServer>
<connectionStrings>
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
</entityFramework>
</configuration>
relevanter Teil der Client-config:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="MyHttpBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://Service1.svc" binding="basicHttpBinding"
bindingConfiguration="MyHttpBinding" contract="ServiceReference1.IService1"
name="MyHttpBinding" />
</client>
Wie groß ist die Datei? –
@AmitKumarGhosh Nur etwa 2 MB – JSchins