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: Even when adding the <handlers> line I still have the problem. I run it on an IIS 7 server. On the server, even if I change the environment variable to C:\TEMP, the error stil mentions C:\WINDOWS\TEMP as if it were hardcoded... Anyway, I spent hours on this issue today, I can't find of any solution. It works perfectly on my machine, but not on server.
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: Even when adding the <handlers> line I still have the problem. I run it on an IIS 7 server. On the server, even if I change the environment variable to C:\TEMP, the error stil mentions C:\WINDOWS\TEMP as if it were hardcoded... Anyway, I spent hours on this issue today, I can't find of any solution. It works perfectly on my machine, but not on server.