Last post Dec 19, 2013 04:41 AM by Shawn - MSFT
Dec 16, 2013 06:12 PMemail@example.com|LINK
I have this application running on production on Windows server 2008 R2 standard., we were asked to make it CAC card enabled. In order to do that I checked the SSL optiojn in IIS 7.5. Once I enabled the CAC card access, I changed my web.config file in
the following way
<httpCookies httpOnlyCookies="true" requireSSL="true"/>
<forms loginUrl="Login.aspx" defaultUrl="Default.aspx" protection="All" requireSSL="true" timeout="20" name=".ASPXAUTH" path="/" slidingExpiration="true"/>
I started getting this error on all my pages as soon as I made the above changes
Sys.WebForms.PageRequestManagerServerErrorException: An unknow error occured while processing the request on the server, The status code from the server was : 413
After googling it, i saw that if the file upload size on the web site is huge then this causes this issue so IU added these two lines of code in my config file
<httpRuntime requestValidationMode="2.0" executionTimeout="7200" maxRequestLength="2000000000" minLocalRequestFreeThreads="76" appRequestQueueLimit="200"/>
<requestLimits maxQueryString="10000" maxUrl="10000" maxAllowedContentLength="4096000000"/>
I am not sure why am I getting this error when enabling the SSL, I was wondering if anyone can help me with this error. As soon as I uncheck SSL, I stopped getting that error.
any help will be greatly appreciated.
Dec 16, 2013 10:07 PM|oned_gk|LINK
Dec 19, 2013 04:41 AM|Shawn - MSFT|LINK
The error 413 indicates that the server is refusing to process a request because the request entity is larger than the server is willing or able to process. The server MAY close the connection to prevent the client from continuing the request. If the condition
is temporary, the server SHOULD include a Retry- After header field to indicate that it is temporary and after what time the client MAY try again.
So, you could try to set the maxRequestLength property to a larger value: