×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

WININET Error: Error 12017

WININET Error: Error 12017

WININET Error: Error 12017

(OP)
Hello,
I support a Visual Basic piece of software.

We have a number of users who are having a problem with the internet update function on the software.

When performing the update, they receive a message:

"Runtime Error 9060 Caused when GET, HEAD, POST or PUT methods are used within a timeout parameter."

We are finding that everyone that receives this message is using a broadband connection.

The software uses WININET Functions when performing this update. I have discovered that if the value of the error number is greater than 12000 then the problem is most probably a WININET error.

When I check the error log that is created for the user, the following is recorded:
"Error:  12017 The operation was canceled, usually because the handle on which the request was operating was closed before the operation completed."

This is also recorded:
"Error:  12030 The connection with the server has been terminated."

I really have no idea about WININET functions. I have searched for as much information as I can, but usually you only find out info that lists the above error messages, without any hints on what the problem might be or any suggestions to fix this.

If anyone can help me at all I would be eternally grateful!

Thank you!

Jen

RE: WININET Error: Error 12017

Jen,
I am just starting with the wininet function, but I wanted to let you know that this api was made for C++ programming.  While it is true that Wininet can be used in VB, it is not *that* common.  Perhaps if you posted this problem into a C++ forum you may get a better responce.  Just a thought...

Once I learn more about this API, and if I find out what your problem is, then I will get back to you here.

LF

RE: WININET Error: Error 12017

Jen,
I have found some more information that may be of some help to you.

I am not sure if this applies to your problem, but I have had a problem with this control in a program of mine.  The internet standard states that no computer can have more 2 connections per server at a time.  What may be happening with your program is that the users are connecting, or attempting to connect, to the same server more than 2 times.  The error may come in where your program may be attempting to send information when WinInet has already closed the session due to this server limitation.  There is a fix for this as I have put below...


create the following registry entry...(this entry will only be for the current user)

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

Sets the number of simultaneous requests to a single HTTP 1.1 Server
MaxConnectionsPerServer REG_DWORD (Default 2)

MaxConnectionsPer1_0Server REG_DWORD (Default 4)
'Sets the number of simultaneous requests to a single HTTP 1.0 Server

I hope this helps you with your problem...  If you are still having the problem, then perhaps you could post some of your code that handles the connection...

regards.

LF

RE: WININET Error: Error 12017

(OP)
Dear LF,
Thank you very much for the suggestion. I just wanted to ask a couple of questions just to check I am doing the right thing....

OK firstly I am creating a new REG_DWORD yes?

Also how do I specify the default 2 and default 4 that you suggest? Do I just add this to the Value Data field as a 2 or a 4 and if so should the base be hexidecimal or decimal?

Sorry if this sounds silly or if I am on completely the wrong lines but just wanted to check that I was doing this correctly!

Thank you for your help

Jen

RE: WININET Error: Error 12017

Jen,

You are on the right track.

Yes, you are creating a new REG_DWORD.

Once you have created the REG_DWORD, then you double click on it to set it's value.  I should mention that the default is 2 for the 1.1 server, which means when there is no REG_DWORD with a value present, then Internet Explorer uses 2; I would set it to F or FF which should give the necessary amount of connections.  When you set the value only put the value, i.e. only put FF and not (FF). ok?

I too would want to double check with the referring person before performing such actions.  You are performing brain surgery after all! ;).  You will do fine.

LF

RE: WININET Error: Error 12017

(OP)
Dear LF,
I'm sorry that it has taken me so long to get back to you. I have actually managed to go through these instructions and I would like to give you a big kiss because it worked!!

Thank you so much for your help!

I just wanted to ask, once I have set the value to FF, am I ok to leave it like this? Would I create more problems by leaving that value set or is it perfectly safe?

Jen

RE: WININET Error: Error 12017

Jenniferlynn
Read FAQ222-2244 para 15 to find how to give LF a 'virtual' kiss (Or star as we know them ) for all his effort

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

For tsunami relief donations

'If we're supposed to work in Hex, why have we only got A fingers?'

www.essexsteam.co.uk for steam enthusiasts

RE: WININET Error: Error 12017

WOW!  That's better than a star Jen!  Thanks!

One of the nicer things about setting this value to FF is that the user of that computer can download as many things from a single server as she/he wants to so that they do not have to wait for various downloads to complete before starting another.  So the answer to your question is, the FF value should be fine. The only reason that the default value is 2 is because when creating the WWW standard, they had to keep in mind that millions of people will be downloading things on the internet, which, as you might imagine, would really bogg the net down if nobody had a limit on how many downloads could be present at one time, and on one server.  So really what you will be doing for the people that run your software, is opening up the connection a bit; many won't even notice a difference, some may, but it really doesn't matter.

Well, I sure am glad that I could help you with this problem.  Take care...

LF

http://journal.veryfinephotos.com


"As far as the laws of mathematics refer to reality, they are not certain; as far as they are certain, they do not refer to reality."--Albert Einstein

RE: WININET Error: Error 12017

(OP)
Dear LF,
That's great thank you very much! You are my star!
Jen
x

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close