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: Hi, like you guys I had a few problems with the new AjaxFileUpload, but in the end I could work arround my issue. Because this thread contains information that was very helpfull to me, I wanted to share one piece that's missing here. Maybe someone can confirm this: The reason why my code didn't work was one line of code, where I set a Panel invisible (one that happened to contain the AjaxFileUpload) during the async postback while uploading a pending file which resulted in an JSON deserialization exception, probably because expected markup suddenly wasn't present anymore. BUT the ultimate problem was the reason for this line of code being executed in the first place. And the reason was a variable not being set, due to missing querystring parameters. So I guess that the client code that is responsible for the async postback, fails to add the querystring parameters of the current page to the XMLHttpRequest, when POSTing the server. But I don't know if this is a bug, or if this is a wanted behaviour. Hope this helps someone.
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: Hi, like you guys I had a few problems with the new AjaxFileUpload, but in the end I could work arround my issue. Because this thread contains information that was very helpfull to me, I wanted to share one piece that's missing here. Maybe someone can confirm this: The reason why my code didn't work was one line of code, where I set a Panel invisible (one that happened to contain the AjaxFileUpload) during the async postback while uploading a pending file which resulted in an JSON deserialization exception, probably because expected markup suddenly wasn't present anymore. BUT the ultimate problem was the reason for this line of code being executed in the first place. And the reason was a variable not being set, due to missing querystring parameters. So I guess that the client code that is responsible for the async postback, fails to add the querystring parameters of the current page to the XMLHttpRequest, when POSTing the server. But I don't know if this is a bug, or if this is a wanted behaviour. Hope this helps someone.