I resolved this problem. I did not have the correct entries in web.config
I just update to the latest version of the Ajax Control Toolkit. I am using the AjaxFileUploader and I am now getting the following ASP exception. I was not getting this with the prior release. Could this be a permissions issue? I'm running IIS Web Server on Windows 2003 R2 Server. THe application is using ASP Version 4.0.30319
Event Type: Warning
Event Source: ASP.NET 4.0.30319.0
Event Category: Web Event
Event ID: 1309
Date: 5/7/2013
Time: 1:32:15 PM
User: N/A
Computer: IBT-2800
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 5/7/2013 1:32:15 PM
Event time (UTC): 5/7/2013 5:32:15 PM
Event ID: 08196419444443849c97355eb97d151f
Event sequence: 443
Event occurrence: 3
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1686273646/Root/MIS-1-130124201373726250
Trust level: Full
Application Virtual Path: /MIS
Application Path: C:\Buzz\iis_root\OLI\GardenAndGunClub\MIS2013\
Machine name: IBT-2800
Process information:
Process ID: 5628
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: DirectoryNotFoundException
Exception message: Could not find a part of the path 'C:\WINDOWS\TEMP\_AjaxFileUpload\16B95B50-13DA-9103-48EB-36A9A338C289\'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFiles(String path)
at AjaxControlToolkit.AjaxFileUpload.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://www.gardenandgunclub.com/MIS/apply2.aspx?contextKey={DA8BEDC8-B952-4d5d-8CC2-59FE922E2923}&done=1&guid=16B95B50-13DA-9103-48EB-36A9A338C289
Request path: /MIS/apply2.aspx
User host address: 10.10.80.66
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 16
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFiles(String path)
at AjaxControlToolkit.AjaxFileUpload.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Comments: We was having the same problem. The control stop working when we update our sites from Framework v2 to v4. We are using pool on "Classic" mode, that is the problem, if we __change the pool's mode to "Integrated", the problem disappears__ and the control work just fine. As we can't change the pool mode, we went to look for another solution... _and we found it!!!_ We add the option __preCondition="integratedMode"__ to the handler's registration in Web.Config and _PROBLEM SOLVED!!_ :) ``` <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> </system.webServer> ```
I just update to the latest version of the Ajax Control Toolkit. I am using the AjaxFileUploader and I am now getting the following ASP exception. I was not getting this with the prior release. Could this be a permissions issue? I'm running IIS Web Server on Windows 2003 R2 Server. THe application is using ASP Version 4.0.30319
Event Type: Warning
Event Source: ASP.NET 4.0.30319.0
Event Category: Web Event
Event ID: 1309
Date: 5/7/2013
Time: 1:32:15 PM
User: N/A
Computer: IBT-2800
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 5/7/2013 1:32:15 PM
Event time (UTC): 5/7/2013 5:32:15 PM
Event ID: 08196419444443849c97355eb97d151f
Event sequence: 443
Event occurrence: 3
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1686273646/Root/MIS-1-130124201373726250
Trust level: Full
Application Virtual Path: /MIS
Application Path: C:\Buzz\iis_root\OLI\GardenAndGunClub\MIS2013\
Machine name: IBT-2800
Process information:
Process ID: 5628
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: DirectoryNotFoundException
Exception message: Could not find a part of the path 'C:\WINDOWS\TEMP\_AjaxFileUpload\16B95B50-13DA-9103-48EB-36A9A338C289\'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFiles(String path)
at AjaxControlToolkit.AjaxFileUpload.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://www.gardenandgunclub.com/MIS/apply2.aspx?contextKey={DA8BEDC8-B952-4d5d-8CC2-59FE922E2923}&done=1&guid=16B95B50-13DA-9103-48EB-36A9A338C289
Request path: /MIS/apply2.aspx
User host address: 10.10.80.66
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 16
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFiles(String path)
at AjaxControlToolkit.AjaxFileUpload.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Comments: We was having the same problem. The control stop working when we update our sites from Framework v2 to v4. We are using pool on "Classic" mode, that is the problem, if we __change the pool's mode to "Integrated", the problem disappears__ and the control work just fine. As we can't change the pool mode, we went to look for another solution... _and we found it!!!_ We add the option __preCondition="integratedMode"__ to the handler's registration in Web.Config and _PROBLEM SOLVED!!_ :) ``` <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> </system.webServer> ```