[RESOLVED] 12002 - Timeout Error
I have an app that is being tested at different locations. On my machine, things worked fine for about a week. Elsewhere, I sent it last Friday, and it worked fine across town.
Saturday after noon, I started getting TIME OUT error every time that I run it.
( not SERVER NOT FOUND, which happens when offline)
I took my laptop to a third location, installed the app on a desktop, and it didn't work on either machine.
Still worked fine for my buddy, so I took my laptop there. His works, and mine doesn't.
Today he sent it somewhere, and it works on one computer, but not the other, from the same ip address.
Google doesn't have much on 12002 and VB errors...
[725 byte] By [
dglienna] at [2007-11-20 10:33:30]

# 1 Re: [RESOLVED] 12002 - Timeout Error
i dont have much knowledge about it. but i found these results in MSDN. may be they can give u a hint.
1.
The TranslateErrorCode Function
''''
' Name : TranslateErrorCode
' Purpose : Provides message corresponding to DLL error codes
' Parameters : The DLL error code
' Return val : String containing message
' Algorithim : Selects the appropriate string
''''
Function TranslateErrorCode(ByVal lErrorCode As Long) As String
Select Case lErrorCode
Case 12001: TranslateErrorCode = "No more handles could be generated at this time"
Case 12002: TranslateErrorCode = "The request has timed out."
Case 12003: TranslateErrorCode = "An extended error was returned from the server."
Case 12004: TranslateErrorCode = "An internal error has occurred."
Case 12005: TranslateErrorCode = "The URL is invalid."
Case 12006: TranslateErrorCode = "The URL scheme could not be recognized, or is not supported."
Case 12007: TranslateErrorCode = "The server name could not be resolved."
Case 12008: TranslateErrorCode = "The requested protocol could not be located."
Case 12009: TranslateErrorCode = "A request to InternetQueryOption or InternetSetOption specified an invalid option value."
Case 12010: TranslateErrorCode = "The length of an option supplied to InternetQueryOption or InternetSetOption is incorrect for the type of option specified."
Case 12011: TranslateErrorCode = "The request option can not be set, only queried. "
Case 12012: TranslateErrorCode = "The Win32 Internet support is being shutdown or unloaded."
Case 12013: TranslateErrorCode = "The request to connect and login to an FTP server could not be completed because the supplied user name is incorrect."
Case 12014: TranslateErrorCode = "The request to connect and login to an FTP server could not be completed because the supplied password is incorrect. "
Case 12015: TranslateErrorCode = "The request to connect to and login to an FTP server failed."
Case 12016: TranslateErrorCode = "The requested operation is invalid. "
Case 12017: TranslateErrorCode = "The operation was canceled, usually because the handle on which the request was operating was closed before the operation completed."
Case 12018: TranslateErrorCode = "The type of handle supplied is incorrect for this operation."
Case 12019: TranslateErrorCode = "The requested operation can not be carried out because the handle supplied is not in the correct state."
Case 12020: TranslateErrorCode = "The request can not be made via a proxy."
Case 12021: TranslateErrorCode = "A required registry value could not be located. "
Case 12022: TranslateErrorCode = "A required registry value was located but is an incorrect type or has an invalid value."
Case 12023: TranslateErrorCode = "Direct network access cannot be made at this time. "
Case 12024: TranslateErrorCode = "An asynchronous request could not be made because a zero context value was supplied."
Case 12025: TranslateErrorCode = "An asynchronous request could not be made because a callback function has not been set."
Case 12026: TranslateErrorCode = "The required operation could not be completed because one or more requests are pending."
Case 12027: TranslateErrorCode = "The format of the request is invalid."
Case 12028: TranslateErrorCode = "The requested item could not be located."
Case 12029: TranslateErrorCode = "The attempt to connect to the server failed."
Case 12030: TranslateErrorCode = "The connection with the server has been terminated."
Case 12031: TranslateErrorCode = "The connection with the server has been reset."
Case 12036: TranslateErrorCode = "The request failed because the handle already exists."
Case Else: TranslateErrorCode = "Error details not available."
End Select
End Function
2.
BUG: RequestTimeout = 0 Does Not Work Within ITC
ID: Q189302
------------------------
The information in this article applies to:
Microsoft Visual Basic Standard and Enterprise Editions for Windows, version 5.0
------------------------
SYMPTOMS
Once the RequestTimeout property of Internet Transfer Control is set to 0, calling methods such as Execute for FTP resource generates the following error:
"Run-time error '35754': Unable to connect to remote host".
Calling Execute for HTTP resource causes error 12002 "Timeout".
CAUSE
According to the documentation, setting timeout to 0 means infinity. This is incorrect; the Internet Transfer Control does not interpret 0 as infinity.
RESOLUTION
To avoid the problem, do not set timeout to 0.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
REFERENCES
Visual Basic, Internet Transfer Control On-line Help
Additional query words: kbDSupport kbVBp500bug kbVBp kbDSupport kbdsi kbNoKeyWord
Keywords :
Version : WINDOWS:5.0
Platform : WINDOWS
Issue type : kbbug
Technology :
Last Reviewed: June 11, 1999
2000 Microsoft Corporation. All rights reserved. Terms of Use.
------------------------
Send feedback to MSDN.Look here for MSDN Online resources.
3.
INFO: WinInet Error Codes (12001 through 12156)
ID: Q193625
------------------------
The information in this article applies to:
Microsoft Proxy Server versions 1.0, 2.0
Microsoft Windows NT Server version 4.0
------------------------
SUMMARY
The Microsoft Win32 Internet (WinInet) API provides stand-alone applications with easy access to standard Internet protocols such as Gopher, FTP, and HTTP. The WinInet API abstracts the protocols into a high- level interface that is familiar to Win32 developers.
MORE INFORMATION
The following is a list of error codes returned by the WinInet functions:
Code Error Message and Description
-- ----------
12001 ERROR_INTERNET_OUT_OF_HANDLES
No more handles could be generated at this time.
12002 ERROR_INTERNET_TIMEOUT
The request has timed out.
12003 ERROR_INTERNET_EXTENDED_ERROR
An extended error was returned from the server. This is
typically a string or buffer containing a verbose error
message. Call InternetGetLastResponseInfo to retrieve the
error text.
12004 ERROR_INTERNET_INTERNAL_ERROR
An internal error has occurred.
12005 ERROR_INTERNET_INVALID_URL
The URL is invalid.
12006 ERROR_INTERNET_UNRECOGNIZED_SCHEME
The URL scheme could not be recognized or is not supported.
12007 ERROR_INTERNET_NAME_NOT_RESOLVED
The server name could not be resolved.
12008 ERROR_INTERNET_PROTOCOL_NOT_FOUND
The requested protocol could not be located.
12009 ERROR_INTERNET_INVALID_OPTION
A request to InternetQueryOption or InternetSetOption
specified an invalid option value.
12010 ERROR_INTERNET_BAD_OPTION_LENGTH
The length of an option supplied to InternetQueryOption or
InternetSetOption is incorrect for the type of option
specified.
12011 ERROR_INTERNET_OPTION_NOT_SETTABLE
The request option cannot be set, only queried.
12012 ERROR_INTERNET_SHUTDOWN
The Win32 Internet function support is being shut down or
unloaded.
12013 ERROR_INTERNET_INCORRECT_USER_NAME
The request to connect and log on to an FTP server could
not be completed because the supplied user name is
incorrect.
12014 ERROR_INTERNET_INCORRECT_PASSWORD
The request to connect and log on to an FTP server could
not be completed because the supplied password is
incorrect.
12015 ERROR_INTERNET_LOGIN_FAILURE
The request to connect to and log on to an FTP server
failed.
12016 ERROR_INTERNET_INVALID_OPERATION
The requested operation is invalid.
12017 ERROR_INTERNET_OPERATION_CANCELLED
The operation was canceled, usually because the handle on
which the request was operating was closed before the
operation completed.
12018 ERROR_INTERNET_INCORRECT_HANDLE_TYPE
The type of handle supplied is incorrect for this
operation.
12019 ERROR_INTERNET_INCORRECT_HANDLE_STATE
The requested operation cannot be carried out because the
handle supplied is not in the correct state.
12020 ERROR_INTERNET_NOT_PROXY_REQUEST
The request cannot be made via a proxy.
12021 ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND
A required registry value could not be located.
12022 ERROR_INTERNET_BAD_REGISTRY_PARAMETER
A required registry value was located but is an incorrect
type or has an invalid value.
12023 ERROR_INTERNET_NO_DIRECT_ACCESS
Direct network access cannot be made at this time.
12024 ERROR_INTERNET_NO_CONTEXT
An asynchronous request could not be made because a zero
context value was supplied.
12025 ERROR_INTERNET_NO_CALLBACK
An asynchronous request could not be made because a
callback function has not been set.
12026 ERROR_INTERNET_REQUEST_PENDING
The required operation could not be completed because one
or more requests are pending.
12027 ERROR_INTERNET_INCORRECT_FORMAT
The format of the request is invalid.
12028 ERROR_INTERNET_ITEM_NOT_FOUND
The requested item could not be located.
12029 ERROR_INTERNET_CANNOT_CONNECT
The attempt to connect to the server failed.
12030 ERROR_INTERNET_CONNECTION_ABORTED
The connection with the server has been terminated.
12031 ERROR_INTERNET_CONNECTION_RESET
The connection with the server has been reset.
12032 ERROR_INTERNET_FORCE_RETRY
Calls for the Win32 Internet function to redo the request.
12033 ERROR_INTERNET_INVALID_PROXY_REQUEST
The request to the proxy was invalid.
12036 ERROR_INTERNET_HANDLE_EXISTS
The request failed because the handle already exists.
12037 ERROR_INTERNET_SEC_CERT_DATE_INVALID
SSL certificate date that was received from the server is
bad. The certificate is expired.
12038 ERROR_INTERNET_SEC_CERT_CN_INVALID
SSL certificate common name (host name field) is incorrect.
For example, if you entered www.server.com and the common
name on the certificate says www.different.com.
12039 ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR
The application is moving from a non-SSL to an SSL
connection because of a redirect.
12040 ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR
The application is moving from an SSL to an non-SSL
connection because of a redirect.
12041 ERROR_INTERNET_MIXED_SECURITY
Indicates that the content is not entirely secure. Some of
the content being viewed may have come from unsecured
servers.
12042 ERROR_INTERNET_CHG_POST_IS_NON_SECURE
The application is posting and attempting to change
multiple lines of text on a server that is not secure.
12043 ERROR_INTERNET_POST_IS_NON_SECURE
The application is posting data to a server that is not
secure.
12110 ERROR_FTP_TRANSFER_IN_PROGRESS
The requested operation cannot be made on the FTP session
handle because an operation is already in progress.
12111 ERROR_FTP_DROPPED
The FTP operation was not completed because the session was
aborted.
12130 ERROR_GOPHER_PROTOCOL_ERROR
An error was detected while parsing data returned from the
gopher server.
12131 ERROR_GOPHER_NOT_FILE
The request must be made for a file locator.
12132 ERROR_GOPHER_DATA_ERROR
An error was detected while receiving data from the gopher
server.
12133 ERROR_GOPHER_END_OF_DATA
The end of the data has been reached.
12134 ERROR_GOPHER_INVALID_LOCATOR
The supplied locator is not valid.
12135 ERROR_GOPHER_INCORRECT_LOCATOR_TYPE
The type of the locator is not correct for this operation.
12136 ERROR_GOPHER_NOT_GOPHER_PLUS
The requested operation can only be made against a Gopher+
server or with a locator that specifies a Gopher+
operation.
12137 ERROR_GOPHER_ATTRIBUTE_NOT_FOUND
The requested attribute could not be located.
12138 ERROR_GOPHER_UNKNOWN_LOCATOR
The locator type is unknown.
12150 ERROR_HTTP_HEADER_NOT_FOUND
The requested header could not be located.
12151 ERROR_HTTP_DOWNLEVEL_SERVER
The server did not return any headers.
12152 ERROR_HTTP_INVALID_SERVER_RESPONSE
The server response could not be parsed.
12153 ERROR_HTTP_INVALID_HEADER
The supplied header is invalid.
12154 ERROR_HTTP_INVALID_QUERY_REQUEST
The request made to HttpQueryInfo is invalid.
12155 ERROR_HTTP_HEADER_ALREADY_EXISTS
The header could not be added because it already exists.
12156 ERROR_HTTP_REDIRECT_FAILED
The redirection failed because either the scheme changed
(for example, HTTP to FTP) or all attempts made to redirect
failed (default is five attempts).
REFERENCES
For more information about WinInet error codes, see the following in the MSDN Online Web Workshop:
Microsoft Win32 Internet Functions Reference
For more information regarding WinInet programming, see the following in the MSDN Online Web Workshop:
Microsoft Win32 Internet Functions Overview
Microsoft Win32 Internet Functions Tutorials
Additional query words: proxy iis internet information server explorer ie
Keywords :
Version : winnt:1.0,2.0,4.0
Platform : winnt
Issue type : kbinfo
Technology : kbvcSearch
Last Reviewed: July 26, 2000
2000 Microsoft Corporation. All rights reserved. Terms of Use.
------------------------
Send feedback to MSDN.Look here for MSDN Online resources.
4.
Event Message:
Unable to create the directory "Network Trash Folder" on volume "name".
Source Event Log Event ID Event Type
MacFile System 12002 Error
Explanation:
Your system may be low on disk space or you may not have the necessary permissions to create the directory.
User Action:
In either case, contact your system administrator to determine why the directory couldn't be created.
chunks at 2007-11-9 19:34:43 >

# 2 Re: [RESOLVED] 12002 - Timeout Error
Once I got "12002 the operation timed out" and fixed it by activating firewall exceptions, try it.
jggtz at 2007-11-9 19:35:48 >

# 3 Re: [RESOLVED] 12002 - Timeout Error
5.
Visual InterDev
Link View Error Messages
When verifying links, Link View frequently interacts with WinInet.dll, the same DLL that Microsoft Internet Explorer uses for Internet access. If WinInet.dll cannot retrieve a URL, it reports an error. The error may indicate that a server could not be accessed, header information for a page could not be located, and so on.
In Link View, this WinInet.dll error code appears in the ToolTip of the item that could not be located. You can use this error code to help you fix broken links.
The following table lists the more common WinInet error codes and their corresponding error messages and descriptions.
WinInet Error Codes
Code Error Message/Description
12001 ERROR_INTERNET_OUT_OF_HANDLES
No more handles could be generated at this time.
12002 ERROR_INTERNET_TIMEOUT
The request has timed out.
12003 ERROR_INTERNET_EXTENDED_ERROR
An extended error was returned from the server. This is typically a string or buffer containing a verbose error message. Call InternetGetLastResponseInfo to retrieve the error text.
12004 ERROR_INTERNET_INTERNAL_ERROR
An internal error has occurred.
12005 ERROR_INTERNET_INVALID_URL
The URL is invalid.
12006 ERROR_INTERNET_UNRECOGNIZED_SCHEME
The URL scheme could not be recognized or is not supported.
12007 ERROR_INTERNET_NAME_NOT_RESOLVED
The server name could not be resolved.
12008 ERROR_INTERNET_PROTOCOL_NOT_FOUND
The requested protocol could not be located.
12009 ERROR_INTERNET_INVALID_OPTION
A request to InternetQueryOption or InternetSetOption specified an invalid option value.
12010 ERROR_INTERNET_BAD_OPTION_LENGTH
The length of an option supplied to InternetQueryOption or InternetSetOption is incorrect for the type of option specified.
12011 ERROR_INTERNET_OPTION_NOT_SETTABLE
The request option cannot be set, only queried.
12012 ERROR_INTERNET_SHUTDOWN
The Win32 Internet function support is being shut down or unloaded.
12013 ERROR_INTERNET_INCORRECT_USER_NAME
The request to connect and log on to an FTP server could not be completed because the supplied user name is incorrect.
12014 ERROR_INTERNET_INCORRECT_PASSWORD
The request to connect and log on to an FTP server could not be completed because the supplied password is incorrect.
12015 ERROR_INTERNET_LOGIN_FAILURE
The request to connect to and log on to an FTP server failed.
12016 ERROR_INTERNET_INVALID_OPERATION
The requested operation is invalid.
12017 ERROR_INTERNET_OPERATION_CANCELLED
The operation was canceled, usually because the handle on which the request was operating was closed before the operation completed.
12018 ERROR_INTERNET_INCORRECT_HANDLE_TYPE
The type of handle supplied is incorrect for this operation.
12019 ERROR_INTERNET_INCORRECT_HANDLE_STATE
The requested operation cannot be carried out because the handle supplied is not in the correct state.
12020 ERROR_INTERNET_NOT_PROXY_REQUEST
The request cannot be made via a proxy.
12021 ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND
A required registry value could not be located.
12022 ERROR_INTERNET_BAD_REGISTRY_PARAMETER
A required registry value was located but is an incorrect type or has an invalid value.
12023 ERROR_INTERNET_NO_DIRECT_ACCESS
Direct network access cannot be made at this time.
12024 ERROR_INTERNET_NO_CONTEXT
An asynchronous request could not be made because a zero context value was supplied.
12025 ERROR_INTERNET_NO_CALLBACK
An asynchronous request could not be made because a callback function has not been set.
12026 ERROR_INTERNET_REQUEST_PENDING
The required operation could not be completed because one or more requests are pending.
12027 ERROR_INTERNET_INCORRECT_FORMAT
The format of the request is invalid.
12028 ERROR_INTERNET_ITEM_NOT_FOUND
The requested item could not be located.
12029 ERROR_INTERNET_CANNOT_CONNECT
The attempt to connect to the server failed.
12030 ERROR_INTERNET_CONNECTION_ABORTED
The connection with the server has been terminated.
12031 ERROR_INTERNET_CONNECTION_RESET
The connection with the server has been reset.
12032 ERROR_INTERNET_FORCE_RETRY
Calls for the Win32 Internet function to redo the request.
12033 ERROR_INTERNET_INVALID_PROXY_REQUEST
12036 ERROR_INTERNET_HANDLE_EXISTS
The request failed because the handle already exists.
12037 ERROR_INTERNET_SEC_CERT_DATE_INVALID
12038 ERROR_INTERNET_SEC_CERT_CN_INVALID
12039 ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR
12040 ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR
12041 ERROR_INTERNET_MIXED_SECURITY
Indicates that the content is not entirely secure. Some of the content being viewed may have come from unsecured servers.
12042 ERROR_INTERNET_CHG_POST_IS_NON_SECURE
12043 ERROR_INTERNET_POST_IS_NON_SECURE
12110 ERROR_FTP_TRANSFER_IN_PROGRESS
The requested operation cannot be made on the FTP session handle because an operation is already in progress.
12111 ERROR_FTP_DROPPED
The FTP operation was not completed because the session was aborted.
12130 ERROR_GOPHER_PROTOCOL_ERROR
An error was detected while parsing data returned from the gopher server.
12131 ERROR_GOPHER_NOT_FILE
The request must be made for a file locator.
12132 ERROR_GOPHER_DATA_ERROR
An error was detected while receiving data from the gopher server.
12133 ERROR_GOPHER_END_OF_DATA
The end of the data has been reached.
12134 ERROR_GOPHER_INVALID_LOCATOR
The supplied locator is not valid.
12135 ERROR_GOPHER_INCORRECT_LOCATOR_TYPE
The type of the locator is not correct for this operation.
12136 ERROR_GOPHER_NOT_GOPHER_PLUS
The requested operation can only be made against a Gopher+ server or with a locator that specifies a Gopher+ operation.
12137 ERROR_GOPHER_ATTRIBUTE_NOT_FOUND
The requested attribute could not be located.
12138 ERROR_GOPHER_UNKNOWN_LOCATOR
The locator type is unknown.
12150 ERROR_HTTP_HEADER_NOT_FOUND
The requested header could not be located.
12151 ERROR_HTTP_DOWNLEVEL_SERVER
The server did not return any headers.
12152 ERROR_HTTP_INVALID_SERVER_RESPONSE
The server response could not be parsed.
12153 ERROR_HTTP_INVALID_HEADER
The supplied header is invalid.
12154 ERROR_HTTP_INVALID_QUERY_REQUEST
The request made to HttpQueryInfo is invalid.
12155 ERROR_HTTP_HEADER_ALREADY_EXISTS
The header could not be added because it already exists.
12156 ERROR_HTTP_REDIRECT_FAILED
------------------------
Send feedback to MSDN.Look here for MSDN Online resources.
chunks at 2007-11-9 19:36:50 >

# 4 Re: [RESOLVED] 12002 - Timeout Error
Once I got "12002 the operation timed out" and fixed it by activating firewall exceptions, try it.
Happens in the IDE, which has an exception already. It would have never worked without that. It worked for a week or so, stopped for two days, and then worked once since then.
# 5 Re: [RESOLVED] 12002 - Timeout Error
To be honest, I am mostly baffled. There are three options of what it could be...
1. Attempting to connect to an invalid IP. We know it is correct because even the website itself has problems for certain users.
2. Slow connection. This is not the case for either of us.
3. Sending too large of information packets. The data being sent and retrieved is very small.
To me, it seems as though the servers are connection prejudice. But, you mentioned that you have two connections from the same IP where one worked and the other did not.
# 6 Re: [RESOLVED] 12002 - Timeout Error
To be honest, I am mostly baffled. There are three options of what it could be...
1. Attempting to connect to an invalid IP. We know it is correct because even the website itself has problems for certain users. That would cause a SERVER NOT FOUND error
2. Slow connection. This is not the case for ALL of us.
3. Sending too large of information packets. The data being sent and retrieved is very small. Never gets COMPLETED.
To me, it seems as though the servers are connection prejudice. But, you mentioned that you have two connections from the same IP where one worked and the other did not. From THREE different locations!
Three locations. One machine works and the other doesn't.
It TIMES OUT before the first GET CHUNK is even read. I have it printed in the debug window as it comes in. It worked fine for a few days on my machine, but not now.
# 7 Re: [RESOLVED] 12002 - Timeout Error
If anyone can help:'
Doesn't really seem like a programming problem, but it's baffling.
http://www.dev-archive.com/forum/showthread.php?t=433308
# 8 Re: [RESOLVED] 12002 - Timeout Error
The times that it worked vs didn't work...was that while we were altering the code or was the code completely static?
# 9 Re: [RESOLVED] 12002 - Timeout Error
Three locations. One machine works and the other doesn't.
Is the application supposed to behave exactly the same way on different machines and at different times? Are there different versions of required DLLs installed on the different machines?
What about using a sniffer on the communication? Are there any differencies in the data sent (and/or received)?
It TIMES OUT before the first GET CHUNK is even read. I have it printed in the debug window as it comes in. It worked fine for a few days on my machine, but not now.During these few days, did Windows Update ever kick in? Or did you install anything?
- petter
# 10 Re: [RESOLVED] 12002 - Timeout Error
No changes being made. Same exe everywhere.
Simple program, does an EXECUTE and displays a page. On each machine, it either works correctly, or not at all, with the 12002's
One troublesome pair are both my two laptops, both with the IDE, and set up identically. Doesn't work on either one. Tested only on the first one until this week. It worked until last Saturday.
Haven't tried using a Sniffer, but will consider it. It doesn't seem to be getting any data, but uses a lot of CPU bandwith, and no Network Activity while it runs.
It's using DoEvents, but as I said, it worked fine all during testing for me, but not at all for the first tester.
# 11 Re: [RESOLVED] 12002 - Timeout Error
The debug.window shows this before the timeout:
3
4
5
6
7
9
10
11
Is 7 an out of memory? I saw it referenced somewhere. Don't see how it would apply though.
# 12 Re: [RESOLVED] 12002 - Timeout Error
I had a problem with a short app that's experiencing timeout errors using the Internet Transfer Control. I wanted to see if Net would be any better at it.
Because the printer object didn't work, 25% didn't work, and my textbox spacing and fonts were off, but it ran after commenting them out!
The problem is that it throws a 12002 Time Out after about a minute on both of my machines, and a majority of machines that I've tested it on. Two machines don't get any error. Same code (vb6/converted)
Any better way?
# 13 Re: [RESOLVED] 12002 - Timeout Error
I don't know what the Internet Transfer Control is so I don't actually know what you're trying to achieve.
# 14 Re: [RESOLVED] 12002 - Timeout Error
He mentioned that the code was converted from VB6.
# 15 Re: [RESOLVED] 12002 - Timeout Error
Well, where it runs, it runs anywhere. Tested a known good computer, and it worked.
Has to be something unique.
Seemed to have it nailed down. The PC above upgraded to IE7 last night, and today the app doesn't run. I tested it here on an old W2K machine, and it runs there as well.
What timeout did IE7 change?
btw - i used the Net Upgrade Wizard, and he built an app that ran after I commented out the printer stuff. first time! the problem is that it also timed out after 31 seconds.
Apparently IE7 affects that also.
# 16 Re: [RESOLVED] 12002 - Timeout Error
It's the VB6 control that is in the namespace. msinet.ocx
The problem was caused by an upgrade to IE7. We found it by accident.
Uninstalling IE7 solved the problem.
The Wizard didn't suggest a replacement to do htto/ftp operations.
# 17 Re: [RESOLVED] 12002 - Timeout Error
I see. So you ran your existing VB6 app through the upgrade wizard and it didn't upgrade any code referencing the Inet control. Now that I know I can see it, but I didn't really get that from your first post. Best to be explicit for the dummies. ;)
In .NET you have the WebClient for basic HTTP and FTP operations. For more control you can use the HttpWebRequest/HttpWebResponse and FtpWebRequest/FtpWebResponse classes.
# 18 Re: [RESOLVED] 12002 - Timeout Error
with the Internet Transfer Control, both in VB6 and upgraded .Net programs.
When you Execute a command, it will now TIME OUT after 30 seconds. Uninstalling IE7 returns it to the default (at least 1 minute).
I couldn't find anywhere that it was set, though. I'm going to make a support call on Monday, but I thought I'd post it here.
The Inet1.State that gets returned is 12002 - Timeout
# 19 Re: [RESOLVED] 12002 - Timeout Error
Well, I'd bet that they don't work anymore, either. We finally figured out the cause. The day after running his laptop on my wifi succcessfully, he upgraded to IE7, and it quit working immediately. Uninstalling fixes the problem.
Apparently IE7 imposes some kind of 30 second timeout. That's the exact time of the icError, returning 12002 - Timeout. I'm calling MS on Monday.
btw - the wizard used the vb namespace, and did run on my computer.
# 20 Re: [RESOLVED] 12002 - Timeout Error
[ merged ]
# 21 Re: [RESOLVED] 12002 - Timeout Error
FYI - The timeout was changed from ONE HOUR in IE6 to 30 SECONDS in IE7.
BEWARE!
# 22 Re: [RESOLVED] 12002 - Timeout Error
What if you set that site to be a trusted site? Does the timeout level change?
# 23 Re: [RESOLVED] 12002 - Timeout Error
Tried that last week. Nothing worked. I finally found something after searching thru the Winet Control, and then found some other software that wasn't working, and the solution was provided.
http://support.microsoft.com/kb/q181050/
6 hours on support calls produced nothing. Today they finally called back. It was an IE7 person, who told me the timeout was not changed. I'm going to email her the link.
# 24 Re: [RESOLVED] 12002 - Timeout Error
[ Removed Resolved ]
# 25 Re: [RESOLVED] 12002 - Timeout Error
That was the solution. Adding the registry key repaired it.
# 26 Re: [RESOLVED] 12002 - Timeout Error
Oh. Okay. I misunderstood your post then.
# 27 Re: [RESOLVED] 12002 - Timeout Error
Just to pour salt into the wounds, I just found this posted somewhere on a Asp.Net forum.
Hi, i'm getting this similar error: "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error ocurred while processing the requeston the server. The status code reutrned from the server was: 12002"