I'm new to umbraco and .Net and I got a problem when writing a file upload tool.
I am using a jquery plugin called uploadify and wrote a ashx file to handle the uploading request.
I have some functions in my handler like unzip the uploading file (the library I am using is ICSharpCode.SharpZipLib).
Everything is working fine in my local machine because I develp this tool as a web application project and add the dll files as references.
The problem is when I move this ashx file to a folder of umbraco, I got a problem (i put it in a folder of root /ashx/Fileupload.ashx ).
It can handle the normal files but not the zip ones and I think it's because the ashx doesn't import the dll file of ICSharpCode.SharpZipLib correctly.
The ICSharpCode.SharpZipLib dll has been placed in the bin folder of umbraco, what should I do to make my ashx file import it correctly?
I can't see a reason why it would not pick up the dll you've put in place. It sounds more like a permission problem to me, I think the app pool user should be allowed to write to the temp directory to do the unzipping.
Check your Windows Event Log to see what the error is that is being thrown by SharpZipLib, I think it will reveal all you need to know.
Ps. It does work locally, on your dev machine, right?
Import dll for ashx
Hi guys,
I'm new to umbraco and .Net and I got a problem when writing a file upload tool.
I am using a jquery plugin called uploadify and wrote a ashx file to handle the uploading request.
I have some functions in my handler like unzip the uploading file (the library I am using is ICSharpCode.SharpZipLib).
Everything is working fine in my local machine because I develp this tool as a web application project and add the dll files as references.
The problem is when I move this ashx file to a folder of umbraco, I got a problem (i put it in a folder of root /ashx/Fileupload.ashx ).
It can handle the normal files but not the zip ones and I think it's because the ashx doesn't import the dll file of ICSharpCode.SharpZipLib correctly.
The ICSharpCode.SharpZipLib dll has been placed in the bin folder of umbraco, what should I do to make my ashx file import it correctly?
Any help is apprecialted.
Sam
I can't see a reason why it would not pick up the dll you've put in place. It sounds more like a permission problem to me, I think the app pool user should be allowed to write to the temp directory to do the unzipping.
Check your Windows Event Log to see what the error is that is being thrown by SharpZipLib, I think it will reveal all you need to know.
Ps. It does work locally, on your dev machine, right?
Thanks Sebastiaan.
I add <add assembly="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral"/> into web.config and solved the problem.
is working on a reply...