BITS Downloader, IIS, retrieve a file named *.DLL

  • Thread starter Thread starter Gregory Hassett
  • Start date Start date
G

Gregory Hassett

Hello,

I am using the BITS downloader to retrieve a file as part of a self-updating
application.

The file is called xyz.dll -- and when BITS tries to get it from its
location (where it's hosted on a MS IIS Server), IIS sees the request for
http://myserver/xyz.dll and attempts to execute the DLL (ala CGI) instead of
returning the .DLL file to the requestor.

Does anyone know a way around this?

Thanks!


Greg Hassett
 
Gregory,

You could change the ISAPI filter for your application to keep it from
executing. However, this would most likely prevent other parts of IIS (or
other ISAPI filters) from functioning properly.

What I would do is create an ASPX page which takes the name of the file
(in the querystring) and then reads the file from disk, and sends the bits
back.

Either that, or place the executable code in a zip or cab file, and have
your application uncompress it on the other side.

Hope this helps.
 
Back
Top