Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Tue, 4 Sep 2007 23:32:01 -0700,    group: microsoft.public.inetsdk.programming.urlmonikers        back       


URLDownloadToCacheFile https failure   
I'm having a problem with my ActiveX control when trying to download a file 
from a 
https tomcat server.
The function URLDownloadToCacheFile returns -2146697208 (0x800c0008).

Any ideas?

Thanks,
- Ralf
date: Tue, 4 Sep 2007 23:32:01 -0700   author:   Ralf Berger

Re: URLDownloadToCacheFile https failure   
Ralf Berger  wrote:
> I'm having a problem with my ActiveX control when trying to download
> a file from a
> https tomcat server.
> The function URLDownloadToCacheFile returns -2146697208 (0x800c0008).

Do you by any chance have "Do not save encrypted pages to disk" option 
checked under Tools | Internet Options | Advanced | Security ?
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Wed, 5 Sep 2007 15:18:30 -0400   author:   Igor Tandetnik

Re: URLDownloadToCacheFile https failure   
Hi Igor,

I have doublechecked that before. It's unchecked.

Thanks,
- Ralf


"Igor Tandetnik" wrote:

> Ralf Berger  wrote:
> > I'm having a problem with my ActiveX control when trying to download
> > a file from a
> > https tomcat server.
> > The function URLDownloadToCacheFile returns -2146697208 (0x800c0008).
> 
> Do you by any chance have "Do not save encrypted pages to disk" option 
> checked under Tools | Internet Options | Advanced | Security ?
> -- 
> With best wishes,
>     Igor Tandetnik
> 
> With sufficient thrust, pigs fly just fine. However, this is not 
> necessarily a good idea. It is hard to be sure where they are going to 
> land, and it could be dangerous sitting under them as they fly 
> overhead. -- RFC 1925
> 
> 
>
date: Wed, 5 Sep 2007 23:44:00 -0700   author:   Ralf Berger

Re: URLDownloadToCacheFile https failure   
"Ralf Berger"  wrote in message
news:9837D5B8-DEC8-4669-81BE-1CF3501574E8@microsoft.com
> I'm having a problem with my ActiveX control when trying to download
> a file from a
> https tomcat server.
> The function URLDownloadToCacheFile returns -2146697208 (0x800c0008).

I've just tried this simple program - it works for me:

#include <windows.h>
#include <urlmon.h>

int main()
{
 CoInitialize(0);
 TCHAR file[MAX_PATH];
 HRESULT hr = URLDownloadToCacheFile(0, 
_T("https://www.mynfbonline.com/cashman/"),
  file, MAX_PATH, 0, 0);
 CoUninitialize();
 return 0;
}

There must be something specific to the particular server you are 
working with. Perhaps it's sending a Pragma: no-cache header or similar.
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Thu, 6 Sep 2007 08:12:01 -0400   author:   Igor Tandetnik

Re: URLDownloadToCacheFile https failure   
Igor,

Thanks for you quick reply. Can you imagine any additional reason for that 
failure. Maybe some know problems with Apache/Tomcat systems?

Unfortunately I can not touch the system where the file is downloaded from...

Thanks,
- Ralf


"Igor Tandetnik" wrote:

> "Ralf Berger"  wrote in message
> news:9837D5B8-DEC8-4669-81BE-1CF3501574E8@microsoft.com
> > I'm having a problem with my ActiveX control when trying to download
> > a file from a
> > https tomcat server.
> > The function URLDownloadToCacheFile returns -2146697208 (0x800c0008).
> 
> I've just tried this simple program - it works for me:
> 
> #include <windows.h>
> #include <urlmon.h>
> 
> int main()
> {
>  CoInitialize(0);
>  TCHAR file[MAX_PATH];
>  HRESULT hr = URLDownloadToCacheFile(0, 
> _T("https://www.mynfbonline.com/cashman/"),
>   file, MAX_PATH, 0, 0);
>  CoUninitialize();
>  return 0;
> }
> 
> There must be something specific to the particular server you are 
> working with. Perhaps it's sending a Pragma: no-cache header or similar.
> -- 
> With best wishes,
>     Igor Tandetnik
> 
> With sufficient thrust, pigs fly just fine. However, this is not 
> necessarily a good idea. It is hard to be sure where they are going to 
> land, and it could be dangerous sitting under them as they fly 
> overhead. -- RFC 1925 
> 
> 
>
date: Thu, 6 Sep 2007 05:32:01 -0700   author:   Ralf Berger

Re: URLDownloadToCacheFile https failure   
"Ralf Berger"  wrote in message
news:BC12F653-4A12-4C13-B712-7C729D119E52@microsoft.com
> Thanks for you quick reply. Can you imagine any additional reason for
> that failure. Maybe some know problems with Apache/Tomcat systems?
>
> Unfortunately I can not touch the system where the file is downloaded
> from...

Do you have to use URLDownloadToCacheFile? Have you tried 
URLDownloadToFile? Does it fail in the same way?
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Thu, 6 Sep 2007 08:37:34 -0400   author:   Igor Tandetnik

Re: URLDownloadToCacheFile https failure   
Igor,

I didn't try another function so far.

But your hint with the pragma pointed me to the folowing articles:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg151294.html
http://support.microsoft.com/?id=316431

I let you know if this solved the issue...

Thanks,
- Ralf


"Igor Tandetnik" wrote:

> "Ralf Berger"  wrote in message
> news:BC12F653-4A12-4C13-B712-7C729D119E52@microsoft.com
> > Thanks for you quick reply. Can you imagine any additional reason for
> > that failure. Maybe some know problems with Apache/Tomcat systems?
> >
> > Unfortunately I can not touch the system where the file is downloaded
> > from...
> 
> Do you have to use URLDownloadToCacheFile? Have you tried 
> URLDownloadToFile? Does it fail in the same way?
> -- 
> With best wishes,
>     Igor Tandetnik
> 
> With sufficient thrust, pigs fly just fine. However, this is not 
> necessarily a good idea. It is hard to be sure where they are going to 
> land, and it could be dangerous sitting under them as they fly 
> overhead. -- RFC 1925 
> 
> 
>
date: Thu, 6 Sep 2007 07:12:00 -0700   author:   Ralf Berger

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us