asp.net mvc 4 - Maximum request length exceeded despite config values being set -


i having issues when uploaded files of greater 4mb blob storage using mvc application working on. have added necessary code in web.config shown below:

within system.web

<httpruntime maxrequestlength="1048576" executiontimeout="3600" /> 

within system.webserver

<security>   <requestfiltering>     <requestlimits maxallowedcontentlength="1073741824" />   </requestfiltering> </security> 

i have rebuilt web project , azure project still getting maximum request length exceeded error. ideas might causing this? stack trace follows:

[httpexception (0x80004005): maximum request length exceeded.] system.web.httprequest.getentirerawcontent() +12603644 system.web.httprequest.getmultipartcontent() +221 system.web.httprequest.fillinformcollection() +357 system.web.httprequest.ensureform() +110 system.web.httprequest.get_form() +16 system.identitymodel.services.wsfederationauthenticationmodule.issigninresponse(httprequestbase request) +32 system.identitymodel.services.wsfederationauthenticationmodule.canreadsigninresponse(httprequestbase request, boolean onpage) +129 system.identitymodel.services.wsfederationauthenticationmodule.onauthenticaterequest(object sender, eventargs args) +152 system.web.synceventexecutionstep.system.web.httpapplication.iexecutionstep.execute() +80 system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) +165

i had similar problem, problem silly

in web.config there httpruntime tag targetframework attribute specified.

i created second httpruntime tag instead of add maxrequestlength in present httpruntime tag. value ignored.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -