Link to home
Start Free TrialLog in
Avatar of JXCovert
JXCovertFlag for United States of America

asked on

Error 12029 with WININET in VB6 SP5

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



Avatar of Ark
Ark
Flag of Russian Federation image

Seems it's due to the wrong proxy settings.
ASKER CERTIFIED SOLUTION
Avatar of Ark
Ark
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JXCovert

ASKER

According to the customer, there is no proxy.  It's a home network <rolling_eyes/>, wireless.  Two machines, neither can hook up via WININET, though both can surf to the same URL in IE.

Odd as can be.
Did you try to change InternetOpen flags?