Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
goldeneye77 - 22 Nov 2006 18:46 GMT
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.
goldeneye77 - 22 Nov 2006 19:24 GMT
Adding the /codebase switch when using the "Regasm.exe" utility appears
to have done the trick for me.

> Hi,
>
[quoted text clipped - 20 lines]
>
> Mike.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.