« Previous Next »

Answered Thread: IIS7 won't allow download of a DLL file

Last post 11-03-2009 1:38 PM by Disco Patrick. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 11-03-2009, 9:25 AM

    IIS7 won't allow download of a DLL file

    I have embedded a WinForms UserControl into an ASP.NET page that I have deployed to IIS7.

    The page worked fine in development, but now that it is deployed the control fails to load, and I'm guessing it's something to do with my IIS7 configuration.

    I'm storing the DLL file in a virtual directory, and then pointing my aspx page towards that DLL using the <object> tag. Out of interest, I have tried navigating to the location of the dll e.g www.mysite.com/MyVirtualDirectory/assembly.dll - but I get a 404 error. This is strange, because if I turn on directory browsing and navigate to www.mysite.com/MyVirtualDirectory/ I can see the DLL in the directory listing. I tried putting a test htm page into the same directory and could browse to it no problem.

    Any ideas how I configure IIS7 to allow the client to download this dll file?

  • 11-03-2009, 9:43 AM In reply to

    Re: IIS7 won't allow download of a DLL file

  • 11-03-2009, 12:51 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Answered Re: IIS7 won't allow download of a DLL file

    Go to handler mappings -> edit feature permissions and uncheck the execute checkbox - IIS is currently trying to run your dll as an ISAPI extension on the server which is obviously not what you want.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 11-03-2009, 1:38 PM In reply to

    Re: IIS7 won't allow download of a DLL file

    anilr - THANK YOU!!!

    That's exactly what it was. We had tried this once before but it didn't seem to work for us. However, after reading your explanation it made complete sense so I thought I'd go back and give it another try, and it worked!

Page 1 of 1 (4 items)
Microsoft Communities