In my project I am trying to use AjaxFileUpload. My project has all of its webforms in subdirectories, so say a subfolder Student containing some web forms and a subfolder Messages containing web forms.
If I use AjaxFileUpload in one of the pages that is in these subdirectories, I get the following error:
Uncaught Sys.ArgumentException: Sys.ArgumentException: Cannot deserialize empty string.
Parameter name: data
Because of this error, the OnUploadComplete event is never called. If I however place the page in the root folder of my project, everything works fine, no errors, event gets hit.
In web.config I have changed the handler path, otherwise I got a 404, it now looks like this:
```
<handlers>
<add name="AjaxFileUploadHandler" verb="*"
path="/AjaxFileUploadHandler.axd"
type="AjaxControlToolkit.AjaxFileUploadHandler,
AjaxControlToolkit"/>
</handlers>
```
I tried the same with an empty page, containing nothing but a ScriptManager and the AjaxFileUpload, but it has the same problem. Is there a known work-around for this?
If I use AjaxFileUpload in one of the pages that is in these subdirectories, I get the following error:
Uncaught Sys.ArgumentException: Sys.ArgumentException: Cannot deserialize empty string.
Parameter name: data
Because of this error, the OnUploadComplete event is never called. If I however place the page in the root folder of my project, everything works fine, no errors, event gets hit.
In web.config I have changed the handler path, otherwise I got a 404, it now looks like this:
```
<handlers>
<add name="AjaxFileUploadHandler" verb="*"
path="/AjaxFileUploadHandler.axd"
type="AjaxControlToolkit.AjaxFileUploadHandler,
AjaxControlToolkit"/>
</handlers>
```
I tried the same with an empty page, containing nothing but a ScriptManager and the AjaxFileUpload, but it has the same problem. Is there a known work-around for this?