Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy would InternetOpenURL report error 2 (the system cannot find the file specified)?
    primarykey
    data
    text
    <p>The internet access code in our product works perfectly for 99.99% of people. However, for a few of them, it just doesn't work at all. We've been adding some trace code to try and figure out what the problem is, and it it turns out that InternetOpenURL is reporting error 2 - "The system cannot find the file specified" - from this function call:</p> <pre><code>options = INTERNET_FLAG_RAW_DATA | INTERNET_FLAG_RESYNCHRONIZE; handle = InternetOpenUrl(internet,url,NULL,0,options,0); </code></pre> <p>(internet is the handle to an internet connection opened with InternetOpen, url is the URL to a simple text file that exists on our web server.)</p> <p>We test two different web sites, one http and one https, which are located in totally different places (different domains, servers hosted geographically apart) and they both give the same error for this one guy and a few others. 99% of people, including ourselves, can access them with no problems at all. Not only that, the people affected can access the same URLs without a problem in their web browsers.</p> <p>What on earth could be going on here? :(</p> <p><strong>EDIT</strong>: By luck, we found out what was going wrong! It turns out that some people have the "Use a Proxy Server for your LAN" checkbox checked in their internet options, without actually specifying a proxy server. We were trying to use the non-existent proxy server details, and of course running into problems doing it.</p> <p>I still need to investigate a programmatic solution for this, but everyone who reports the problem has their problem solved by this solution:</p> <ol> <li>Open Internet Explorer</li> <li>Go to 'Tools -> Internet Options'</li> <li>Click the 'Connections' tab.</li> <li>There should be a button labeled 'LAN Settings' near the bottom. Click it.</li> <li>Under the 'Proxy Server' field, uncheck 'Use a proxy server for your LAN'</li> <li>Click OK to everything, restart Windows, and try accessing internet through the product again.</li> </ol> <p>I have no idea why so many people have the box checked but no proxy server specified. But apparently this is what needs to be done to fix it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload