Solved

Error 12029 with WININET

Posted on 2004-03-31
1
2,635 Views
Last Modified: 2010-08-05
This is a crosspost but I MUST have an answer and am at the end of my proverbial rope.

I have what I think is a relatively simple piece of code.  It uses WININET
to "contact" a URL and then grab the ASP.NET generated XML.   As is typical
with many of these bugs that make me tear at my hair, this works on two
hundred machines, and fails on one.   Therefore I am thinking it to be
environmental.  Here is the code:

===============================

    hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_PRECONFIG,
vbNullString, vbNullString, 0)

    If hOpen = 0 Then
        glErrNbr = Err.LastDllError
        gsErrMsg = "Error in InternetOpen call"
        GoTo GetSourceErr
    End If

    hOpenUrl = InternetOpenUrl(hOpen, URL, vbNullString, 0,
INTERNET_FLAG_RELOAD, 0)

    If hOpenUrl = 0 Then
        glErrNbr = Err.LastDllError
        gsErrMsg = "Error in InternetOpenURL call"
        GoTo GetSourceErr
    End If

===============================

InternetOpenUrl raises the error 12029.

The call is to an https: address.

That same URL functions perfectly on that machine if pasted into Internet
Explorer.  The machine is WindowsXP, OfficeXP, IE 6.0.2800.1106.

Note that this same user has an issue using a Wise Installer web-deployed
install.  It ==must== be some sort of setting like it is trying to use a
non-existent proxy (???).  Is it not so?

Again, the same URL that fails with Wininet in
code works in IE.  

He can do other tasks like surf and fetch email.

I'd appreciate any ideas at all on what to look for.

Thank you, all.

John
0
Comment
Question by:JXCovert
1 Comment
 
LVL 10

Accepted Solution

by:
Kavar earned 500 total points
ID: 10729677
could be several things... is he running any kind of spyware blocker/ popup guard??

what happens when you
 hOpenUrl = InternetOpenUrl(hOpen, URL, vbNullString, 0,0, 0)
instead?
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now