Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

URLDownloadToCacheFile URLDownloadToFile Failures

54 views
Skip to first unread message

Thad Senti

unread,
Sep 28, 2000, 3:00:00 AM9/28/00
to

Hello,

I have created an Active Server Object (a COM object that runs from within
an IIS process through ASP calls). This COM object needs to be able to go
out to another server (or URL, more precisely) and retrieve a file that is
in turn sent back to the client through the Response object. I have tried
to use URLDownloadToCacheFile, and it fails everytime. URLDownloadToFile
returns a success, but doesnt actually download the file.

Another way to look at this is to think of the IIS server as becoming a
"download" client to the server *its* calling. Once the IIS server gets its
file, the ASP page munches on it, and then sends the results back to the
client.

Does anyone know if there are issues with the subsystems that these two
functions are using that would cause them to fail when used in an IIS
process? The functions perform fine in a standalone application. I have
tried passing it a controlling IUnknown to no avail.

Would using the raw WinINET functions overcome this? Or will they fail too?

Many thanks,

Thad Senti
se...@diespamdie.pallasinc.com


Dima

unread,
Nov 4, 2000, 6:41:30 PM11/4/00
to

Thad,

I have similar problem with URLDownloadToFile and actually with most URL...
functions when used from within COM server object.. More than this, it
affects the whole computer in some strange way untill I kill the COM server.
After first call to URLDownloadToFile, internet properities from desktop are
not accessable. Second call to URLDownloadToFile doesn't download anything,
instead the previous copy of file is restored. The only thing which makes it
work, - is when I restart my service. Something is fishy about this API or I
don't know something.. I wonder if you found anything?

regards,
Dmitry.


Thad Senti <se...@nospampallasinc.com> wrote in message
news:ewpt6pVKAHA.196@cppssbbsa05...

0 new messages