Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: Error 12002
Alexandre Archambault

From: Montréal, QC Canada
Posts: 49
Member Since: 02/27/01
posted July 25, 2001 9:14 AM

I got an error 12002 and I can't find a reference in the ErrorConstants of the help file.

What is this error?

Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 25, 2001 9:43 AM


Hi,
What line is this failing on?
What is the description associated with the error?
Generally, this means that the second parameter of your method call is invalid.
-ken

K M Drake
Dart Tech Support
Alexandre Archambault

From: Montréal, QC Canada
Posts: 49
Member Since: 02/27/01
posted August 13, 2001 3:57 PM

 Sorry it took so long to get back to this, but I've put my time on something else and now I'm back to it.

 This is the line that generates the 12002 error:
 Session.GET m_File

 The description of the message is:
 Miscellaneous error

 Here's what the URL looks like:

http://oasis.pjm.com/OASIS/PJM/data/transoffering?VERSION=1.4&TEMPLATE=transoffering&fmt=data&primary_provider_code=PJM&primary_provider_duns=073647877&path=PJM+to+NYPP-W&service_increment=DAILY&ts_class=FIRM&ts_type=POINT_TO_POINT&ts_period=FULL_PERIOD&ts_window=FIXED&stime=20010814000000ED&sptime=20011028000000ED

Particualarites<sp> of the site that I am using the GET on:

 -It is a secure site and once I have logged I use cookies to keep the connection information.
 
 -Onced logged on I than do multiple gets (sequentially and treating each file as it comes in), in this particular case I need to do 446 get of different files (urls) and I'm getting the 12002 message error on the 74th get.

 Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted August 14, 2001 12:00 PM


Hi,
Since I am unable to duplicate what you are doing with the cookies and differenr files, I will talk generally. I've been able to get multiple pages using the control, without problems.
I've found that doing your Get within its own function with error handling (like the code below) works best.
If this still does not work for you, we can delve deeper into the problem through the normal support channels (support@dart.com).
-ken

Private Sub DoGet(Url As String)
Dim data As String

On Error GoTo UrlError
  Http1.Url = Url
On Error GoTo GetError
  Http1.Get data
Exit Sub

UrlError: 'Handle Url Errors
  Debug.Print "Url Error:" & Err.Number & ":" & Err.Description
Exit Sub

GetError: 'Handle Get Errors
  Debug.Print "Get Error:" & Err.Number & ":" & Err.Description & ":" & Http1.Url
End Sub

K M Drake
Dart Tech Support
zandrew

From: Tampa, FL USA
Posts: 4
Member Since: 10/22/01
posted October 22, 2001 6:08 PM

I am getting this error also. It is inconsistent and sporadic. However, it typically happens when using a Get method to retrieve info from the site.

I am using Get on a page that uses Basic Authentication. I do not pass any headers. The second parameter (headers) is left empty.

Err Number is 12002. Description: Application-defined or object-defined error.

I am using an error trap within this procedure. Other procedures further up the call stack have their own traps.

Using Visual Basic 6 SP 4.

I have 5 users using this app on a regular basis. It happens on several sites. I log all errors. I can get you just about any debug info you need, but I need to know what's helpful. URL, etc?

Thanks.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted October 23, 2001 12:43 PM


Hi,
Please see the previous response:
http://support.dart.com/forum.dwp?view=4761#FID4761
which applies to your post as well.
What happens when you structure your code so that it is similar to the function I posted?
If you have a URL for me to try, I will be happy to test it out.
-ken

K M Drake
Dart Tech Support
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX