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?