473,396 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
Nov 17 '05 #1
2 2039
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Gregory Hassett" <gh******@hotmail.com> wrote in message
news:eA****************@TK2MSFTNGP09.phx.gbl...
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

Nov 17 '05 #2
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Gregory Hassett" <gh******@hotmail.com> wrote in message
news:eA****************@TK2MSFTNGP09.phx.gbl...
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

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: fishboy | last post by:
Howdy, Sorry if this is a double post. First try seemed to go into hyperspace. I'm working on a personal project. It's going to be a multipart binary attachment downloader that will search...
0
by: Gregory Hassett | last post by:
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...
3
by: Paul Porthouse | last post by:
Hi. I have successfully written an automatic file downloader in VB.NET using webrequest but I can't find any information anywhere on how to read in the filename that the server is sending. ...
7
by: Matt Kowalczyk | last post by:
Hello, I am working on a compression project and I want to write ASCII characters using the minimum amount of bits. Since I will be writing ASCII characters from 0-127 I only need 7 bits to...
0
by: chris | last post by:
I spent hours on this so I hope it helps those that haven't found a solution elsewhere. I kept getting the message "Windows could not start the Background Intelligent Transfer Service on local ...
4
by: Kim | last post by:
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the...
0
by: Kim | last post by:
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the...
0
by: hydroniumf | last post by:
Hi Friends I search a good downloader with high speed that I can add my download URLs list in it via programming in .net. I mean I can control that downloader software via programing (adding list...
4
by: olguyilmaz | last post by:
Hi, I am using the Updater Application Block Version 2. I am trying to follow the instructions at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpa... to build a custom...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.