Re: Exception not caught when calling .NET DLL via (regular) ASP



Adding the /codebase switch when using the "Regasm.exe" utility appears
to have done the trick for me.


goldeneye77 wrote:
Hi,

I'm calling an exposed method of a .NET DLL via (regular/old) ASP using
COM Interop. This method that I'm calling then calls a .NET web
service.

Note that this web service I need to call does not yet exist but I am
testing error catching routines to make sure potential errors are
handled gracefully.

I have code in this method to catch exceptions--particularly a
"System.Net.Sockets.SocketException" exception (to handle a scenario
whereby I cannot connect to the web service). I have made a test shell
with VB 6 and the error is caught as expected and handled accordingly.

However, when I access the method in question via ASP, the exception
does not seem to be caught as it should and the ASP app crashes.

Is there some kind of limitation involving COM Interop, ASP, and .NET
Web Services involved here that anyone might know about?


Cheers,

Mike.

.



Relevant Pages

  • Exception not caught when calling .NET DLL via (regular) ASP
    ... I'm calling an exposed method of a .NET DLL via ASP using ... "System.Net.Sockets.SocketException" exception (to handle a scenario ... Is there some kind of limitation involving COM Interop, ASP, and .NET ...
    (microsoft.public.dotnet.framework.interop)
  • handling exceptions in asynchronous web service calls
    ... I have a win forms application that calls a web service ... the web service call with raise an ... exception. ... Unfortunately, since I am calling it asynchronously, I ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: I am confusing with calling a web services asynchronously.
    ... If something fails you'll get an Exception whether is synchronous or not ... Jet Leung wrote: ... > are lots of things will be happened when calling the web service. ...
    (microsoft.public.dotnet.framework.webservices)
  • Catching exceptions but dont want to cast the type.
    ... thrown (I'm calling a web service in the try) and what I would ideally like ... need to have sort of a generic exception where I can then say - what type is ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Asynchronous Web Service Method Failure
    ... this is an ASP page calling the ... >that pops up if the proxy can't reconcile the web method parameters. ... I cannot return a .pdf document object from a web service method ... >> On the server side, it's not a background thread any more than any other ...
    (microsoft.public.dotnet.framework.aspnet.webservices)