ajaxcontroltoolkit - asp.net AjaxFileUpload Could not find a part of the path catch exception in code behind -
asp.net 3.5 ajaxfileupload not find part of path:
'c:\users\xxxx\appdata\local\temp_ajaxfileupload\8f1933d0-9c0b-8d40-c342-cad6c4833f58
an exception of type 'system.io.directorynotfoundexception' occurred in mscorlib.dll not handled in user code
i have 2 problems:
1) happen sometime. 99% of time works fine small , large files sometime exception. idea why?
2) generate yellow screen because, has says "was not handled in user code" , caught application , proper message displayed, how can catch exception in page code behind, there not seams or error server side event. there client side event no server side , time is late. have try catch in onuploadcomplete not catch anything
put in web.config below system.web closing tag:
<system.webserver> <validation validateintegratedmodeconfiguration="false"/> <handlers> <add name="ajaxfileuploadhandler" verb="*" path="ajaxfileuploadhandler.axd" type="ajaxcontroltoolkit.ajaxfileuploadhandler, ajaxcontroltoolkit" precondition="integratedmode"/> </handlers> <security> <requestfiltering> <requestlimits maxallowedcontentlength="2097151"/> </requestfiltering> </security>
Comments
Post a Comment