Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

413 Request Entity Too Large

$
0
0

Hi,

I've tried changing every web.config and IIS setting I could find relating to this issue and none of the solutions that have worked for others seem to be resolving my issue.

Everything works fine when using Forms Auth, but when using Basic Auth, I can't upload anything larger than ~50kb.

I think I'm hitting that default 64kb limit, but I've got every setting maxed out, and I'm pretty sure I'm using my binding settings and not the default.

This is the web.config:

<?xml version="1.0" encoding="UTF-8"?><configuration><configSections><section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /></configSections><system.web><customErrors mode="Off"></customErrors><compilation debug="true" targetFramework="4.7.2"><assemblies><add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /></assemblies></compilation><httpRuntime targetFramework="4.7.2" maxQueryStringLength="1204800" maxUrlLength="1409600" maxRequestLength="67108864" /><identity impersonate="true" /></system.web><system.webServer><validation validateIntegratedModeConfiguration="false" /><security><requestFiltering><requestLimits maxUrl="2147483647" maxQueryString="2147483647" maxAllowedContentLength="2147483647" /></requestFiltering><authentication><anonymousAuthentication enabled="false" /><basicAuthentication enabled="true" /></authentication></security><defaultDocument><files><add value="DataService.svc" /></files></defaultDocument><serverRuntime uploadReadAheadSize="2147483647" /></system.webServer><system.serviceModel><serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /><bindings><basicHttpBinding><binding name="basicHttpBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" closeTimeout="10:01:00" sendTimeout="10:01:00" openTimeout="10:01:00" receiveTimeout="10:10:00"><readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" /><security mode="None"><transport clientCredentialType="Basic" /></security></binding><binding name="basicHttpsBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" closeTimeout="10:01:00" sendTimeout="10:01:00" openTimeout="10:01:00" receiveTimeout="10:10:00"><readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" /><security mode="Transport"><transport clientCredentialType="Basic" /></security></binding></basicHttpBinding></bindings><behaviors><serviceBehaviors><behavior><!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --><serviceMetadata httpsGetEnabled="true" /><!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --><serviceDebug includeExceptionDetailInFaults="false" /></behavior></serviceBehaviors></behaviors><protocolMapping><add scheme="http" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" /><add scheme="https" binding="basicHttpBinding" bindingConfiguration="basicHttpsBinding" /></protocolMapping></system.serviceModel><connectionStrings></connectionStrings><entityFramework><defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /><providers><provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /></providers></entityFramework><appSettings><add key="Authentication" value="Windows" /><add key="SecureConnection" value="false" /><add key="UpperCaseUser" value="true" /><add key="UpperCaseDatabase" value="true" /><add key="ChooseServer" value="true" /><add key="SQLControledAdmin" value="false" /><add key="NTAuthIgnoreCase" value="false" /><add key="MinimumDatabaseVersion" value="v6.70.04.00" /><add key="EnableDocRepSize" value="1" /></appSettings><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Spatial" publicKeyToken="31BF3856AD364E35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="Microsoft.Data.Services" publicKeyToken="31bf3856ad364e35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-5.8.3.0" newVersion="5.8.3.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-5.8.3.0" newVersion="5.8.3.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-5.8.3.0" newVersion="5.8.3.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-5.8.3.0" newVersion="5.8.3.0" /></dependentAssembly></assemblyBinding></runtime></configuration>

I have also tried to set many of the "max" settings directly in IIS for the entire server but nothing is working.

Ideas?


Viewing all articles
Browse latest Browse all 1881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>