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: Problem with Sample and Visual Studio .Net 2005?
MSloper

From: Amityville, NY USA
Posts: 14
Member Since: 05/20/06
posted May 20, 2006 3:24 PM

I've just purchased webtool and am learning it. I am learning it by trying to build a minimal PageFetch app using the PageFetch Sample. Of course it isn't working yet, but I was stuck on my (exact) copy ErrorNumber function, because I couldn't get the 'comE' variable line to run. It, itself declares an exception, an "InvalidCastException". If you run the sample you can get the same thing, "if" you run it in the debug mode and cause the PageFetch app to 'TimeOut'.  I attempted to trouble shoot the error in the sample, but I'm not sure how to fix it and am not sure whether its a WebTool issur or a VS.NET issue...
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 22, 2006 8:55 AM

Is this issue resolved? From reading your other post, it appears that you have gotten past this point.
MSloper

From: Amityville, NY USA
Posts: 14
Member Since: 05/20/06
posted May 22, 2006 4:16 PM

I didn't get past this one. I go around it. I fixed the nature of the exception and the sample now runs. If the same exception occurs, it will occur again. Though I can't recall which ones I saw, there were at least two other exceptions that caused VS.Net to halt at that same line
MSloper

From: Amityville, NY USA
Posts: 14
Member Since: 05/20/06
posted May 24, 2006 6:18 AM

Any feedback here? The (total of) the error handler code in the sample doesn't seem to handle all the simple errors the way I would expect them to.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 24, 2006 8:16 AM

I'm sorry, I didn't realize that you still needed answers. Unfortunately I don't completely understand what you are asking, so at this point it would probably be best if you sent us an app that duplicates the problem with a description of how to use it. Please zip and send to support@dart.com
MSloper

From: Amityville, NY USA
Posts: 14
Member Since: 05/20/06
posted May 24, 2006 10:29 PM

Sorry, I guess I wasn't clear enough. I'm having the problem with the PageFetch sample for the WebTools - tool, exactly as I've downloaded it. 

I see the problme in VS.Net (as well as my own code which uses the code from the sample exactly). If the timeout is exceeded (do this using the Debug mode) then you'll see the problem. 

Other reasons for failure occur, and I suspect they are all related, but this might expose the reasons for those as well as you look at this.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 25, 2006 12:31 AM

Hmmm. Looks like something must have changed in one of the framework service packs since that sample was written.

It's something to do with passing the DartStrings into the method. I'll check into this further when I get a chance.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 25, 2006 1:56 PM

The problem comes from any situation when the header passed in does not get filled in (timeout for example)

I have written this up as issue #3896 to be addressed in the next release (no estimate date on that as of yet)

You can workaround this by catching System.Runtime.InteropServices.COMException first, then catch generic exceptions and treat them as timeouts.

You could also switch to our Web Enterprise tool and use the WebASP control that is part of it.

If it's really crucial that this is addressed immediately, please contact David Harry (sales@dart.com) for more info.
MSloper

From: Amityville, NY USA
Posts: 14
Member Since: 05/20/06
posted May 25, 2006 3:26 PM

I compared the capability listings of both the PowerTCP Web Tool and the PowerTCP Web Enterprise Tool. The only differences were that the enterprise tool provided server side ASP enhancements which I don't need and WebASP ActiveX COM controls versus the basic web tool's 'Web ActiveX Control.' Doesn't sound like that much more if the Web Tool can do what I need it to do. You've suggested a couple times that the enterprise tool might be something to have to enhance what I'm trying to do, can you elaborate why the difference for me might be worth the +$500?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 25, 2006 4:55 PM

If you have already reviewed all the features and have decided on the Web tool, then I really can't add anything other than the obvious "The other tool doesn't have the problem". Do you think that you use the workaround I suggested? If not, I can try my best to get a fix for this expedited.
MSloper

From: Amityville, NY USA
Posts: 14
Member Since: 05/20/06
posted May 26, 2006 1:14 PM

Fair enough. But, I'll stick with what I have for now and see how it goes. If I get to a point where I can't work around it (I'm still working through some issues associated with just learning the tools), I'll start a new topic/thread and see where you are at with the fix. Thanks
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted September 13, 2006 10:15 AM

UPDATE: This actually turned out to be much simpler than I thought. It turns out that when you call the overloads that don't have all the params defined then VS throws a "TargetInvocationException" that contains the original COM exception. This is because when you call that method, VS in turn calls the original method, causing you to have to "unravel" the exception.

To handle this cath the COM exception first, then catch all others and use the innerexception:


Try
...
Catch ex As System.Runtime.InteropServices.COMException
' Use ex for your error info
Catch ex As Exception
' Use ex.InnerException for your error info
End Try

Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX