Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sam 3 posts 24 karma points
    May 31, 2010 @ 09:06
    Sam
    0

    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

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    May 31, 2010 @ 10:33
    Sebastiaan Janssen
    0

    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?

  • Sam 3 posts 24 karma points
    May 31, 2010 @ 10:55
    Sam
    1

    Thanks Sebastiaan.

    I add <add assembly="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral"/> into web.config and solved the problem.

Please Sign in or register to post replies

Write your reply to:

Draft