I have made changes to a project over the last couple of weeks and somehow my AjaxFileUpload has stopped working. I have a backup of the project from before these changes and this works fine so I have something to reference/test against.
My current project's file upload stopped uploading files over 20mb (I'm sure I had this problem before but managed to fix it - not sure how).
Using F12 to view the errors, I see:
7 of these:
HTTP500: SERVER ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request.
Followed by a final:
SCRIPT5022: error raising upload complete event and start new upload ScriptResource.axd (1484,21)
I don't think it's a web.config issue, as I have tried the web.config from the previous (working) backup and it made no difference.
However, to be sure I have added the following (again, no difference).
Added maxRequestLength="42949672" to web.config:<httpRuntime targetFramework="4.5.2" requestValidationMode="2.0" maxRequestLength="42949672" />
Added <validation validateIntegratedModeConfiguration="false"/>
Added<handlers><add name="AjaxFileUploadHandler" verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit"/></handlers>
Added<security><requestFiltering><requestLimits maxAllowedContentLength="4294967295"/></requestFiltering></security>
Am I missing something?
Thanks