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: VB.NET and XP
SystemUp

From: Norwood, NJ USA
Posts: 23
Member Since: 01/11/02
posted July 24, 2002 8:57 PM

Using the web tool in a service...

Here's how things have built up so far...
1. Working fine in XP
2. Stopped working, apparently due to a license issue.
3. Someone at Dart said to put the license info from the dev computer onto the test computer
4. I did and it solved the problem of the service not being able to create an instance of the web tool.
5. Now I can create it, but when I try to post or put it dies.

I am using the latest update (7/2). Timeout is set to one hour. Able to set URL in the web tool.
The following line #'s are the ones with the put or post command.

The following is when i try to Post:
System.Runtime.InteropServices.COMException (0x800A2EE2): Miscellaneous
error.
  at DartWeb.HttpClass.Post(Object& Data, Object& RequestHeaders, Object&
ResultData, Object& Headers, String User, String Password)
  at Service.NET.cHTTP.RemoveTestFile() in
F:\Projects\SystemUp\Service.NET\clsHTTP.vb:line 50

And when i try to Put:
1|07/23/2002 4:00:41 PM|[S] HTTP.SimplePutFile:
System.Runtime.InteropServices.COMException (0x800A2EE2): Miscellaneous
error.
  at DartWeb.HttpClass.Put(Object& Content, Object& RequestHeaders,
Object& ResultData, Object& Headers, String User, String Password)
  at Service.NET.cHTTP.SimplePutFile(String& sLocal, String& sRemote) in
F:\Projects\SystemUp\Service.NET\clsHTTP.vb:line 209

Thanks!
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 26, 2002 12:45 PM

Hi,
I just performed a Post in a .NET Windows Service without a problem.
Does your Post work in a non-Service application?
Thanks,
-ken
SystemUp

From: Norwood, NJ USA
Posts: 23
Member Since: 01/11/02
posted July 26, 2002 1:29 PM

Yeah. I have a VB6 app that uses the web tool and it works fine in XP when I do everything.

Just having problems with the VB.NET code.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 26, 2002 1:31 PM

Hi,
Does your Post work in a non-Service VB.NET application?
Thanks,
-ken
SystemUp

From: Norwood, NJ USA
Posts: 23
Member Since: 01/11/02
posted July 26, 2002 1:33 PM

Sorry... yeah, the VB6 program is a normal program. The web tool is placed on the form.
SystemUp

From: Norwood, NJ USA
Posts: 23
Member Since: 01/11/02
posted July 26, 2002 1:35 PM

Ha. I neglected to answer your question. I'm gonna have to wait to answer that one. I'll post later today if it works in a non-service VB.NET program.
SystemUp

From: Norwood, NJ USA
Posts: 23
Member Since: 01/11/02
posted July 30, 2002 9:37 AM

I tested it on XP using a non-service program and it worked perfectly. The webtool and ziptool are still being created as instances, just like in the service. So I don't know where to go from here...

can you send me your service, with all the dlls, and see if that works on my XP machine?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 30, 2002 12:13 PM

Hi,
My very simple service just does a Post on startup, and adds the server's response to an Event Log. Below is the Service Class OnStart method (C#).
If you require further help on this, please consider one of our paid support options.
Thanks,
-ken

protected override void OnStart(string[] args)
{
  DartWeb.HttpClass Http1 = new DartWeb.HttpClass();
  object content = "";
  object headers = null;
  object respHeaders = null;
  object data = "Name=Ken";

  Http1.Url = "www.dart.com/PostSample.asp";
  Http1.Post(ref data, ref headers, ref content, ref respHeaders, "", "");
  eventLog1.WriteEntry(content.ToString());
}
SystemUp

From: Norwood, NJ USA
Posts: 23
Member Since: 01/11/02
posted August 7, 2002 3:01 PM

I got my hands on an "untainted" XP computer. The service worked. So I guess there is some lingering thing on my XP box. (I even deleted every dart file and entry in the registry, and it still wouldn't work)
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX