[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

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

goldeneye77

11/22/2006 6:47:00 PM

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.

8 Answers

goldeneye77

11/22/2006 7:24:00 PM

0

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.

conwaycaine

9/7/2009 3:45:00 PM

0


"Adam Whyte-Settlar" <ador@ble> wrote in message
news:lomdnfxSK7m5PDnXnZ2dnUVZ8ridnZ2d@westnet.com.au...

> Well - I reaaly liked the fridge too, but a wee man with a magic stick
> that could take me on a tour of the universe would be nice.

You get that when you check out of this existence.


Fred J. McCall

9/7/2009 6:31:00 PM

0

"conwaycaine" <conwaycaine@bellsouth.net> wrote:

:
:"Adam Whyte-Settlar" <ador@ble> wrote in message
:news:lomdnfxSK7m5PDnXnZ2dnUVZ8ridnZ2d@westnet.com.au...
:
:> Well - I reaaly liked the fridge too, but a wee man with a magic stick
:> that could take me on a tour of the universe would be nice.
:
:You get that when you check out of this existence.
:

But Adam wants his "wee man with a magic stick" in this life.

Is this why he refers to his companion as the PFD? He's still seeking
that "wee man with a magic stick" and he doesn't want us to realize
that it's male?

Not that there's anything wrong with that....

--
"Adrenaline is like exercise, but without the excessive gym fees."
-- Professor Walsh, "Buffy the Vampire Slayer"

Adam Whyte-Settlar

9/8/2009 3:58:00 AM

0


"Bryn Fraser" <brianlovett666@googlemail.com> wrote in message
news:2bb1f3d7-f51d-4211-8239-dfa629becfa1@a7g2000yqo.googlegroups.com...
On Sep 7, 7:30 pm, Fred J. McCall <fjmcc...@gmail.com> wrote:
> "conwaycaine" <conwayca...@bellsouth.net> wrote:
>
> ::"Adam Whyte-Settlar" <ador@ble> wrote in message
>
> :news:lomdnfxSK7m5PDnXnZ2dnUVZ8ridnZ2d@westnet.com.au...
> :
> :> Well - I reaaly liked the fridge too, but a wee man with a magic stick
> :> that could take me on a tour of the universe would be nice.
> :
> :You get that when you check out of this existence.

Idiot stalking troll snipped.

> Pratt!

Dear oh dear.
That was simply pathetically awful even for brain-dead fred McTroll.

Dear oh dear.




Adam Whyte-Settlar

9/8/2009 4:01:00 AM

0


"conwaycaine" <conwaycaine@bellsouth.net> wrote in message
news:7K2dnX5KoagNtzjXnZ2dnUVZ_gadnZ2d@giganews.com...
>
> "Adam Whyte-Settlar" <ador@ble> wrote in message
> news:lomdnfxSK7m5PDnXnZ2dnUVZ8ridnZ2d@westnet.com.au...
>
>> Well - I reaaly liked the fridge too, but a wee man with a magic stick
>> that could take me on a tour of the universe would be nice.
>
> You get that when you check out of this existence.

: )

Always a catch with you religion-salesmen isn't there?


Fred J. McCall

9/8/2009 5:49:00 AM

0

"Adam Whyte-Settlar" <ador@ble> wrote:

:
:"Bryn Fraser" <brianlovett666@googlemail.com> wrote in message
:news:2bb1f3d7-f51d-4211-8239-dfa629becfa1@a7g2000yqo.googlegroups.com...
:On Sep 7, 7:30 pm, Fred J. McCall <fjmcc...@gmail.com> wrote:
:> "conwaycaine" <conwayca...@bellsouth.net> wrote:
:>
:> ::"Adam Whyte-Settlar" <ador@ble> wrote in message
:>
:> :news:lomdnfxSK7m5PDnXnZ2dnUVZ8ridnZ2d@westnet.com.au...
:> :
:> :> Well - I reaaly liked the fridge too, but a wee man with a magic stick
:> :> that could take me on a tour of the universe would be nice.
:> :
:> :You get that when you check out of this existence.
:
:Idiot stalking troll snipped.
:
:> Pratt!
:
:Dear oh dear.
:That was simply pathetically awful even for brain-dead fred McTroll.
:

Poor Asshat the White Settler, *still* begging for my attention...

:
:Dear oh dear.
:

And don't call me 'dear'. You're not my type and 'no' means no.
Besides, I'm too tall for you and my 'magic wand' is far too big.

--
"Well, I met a girl in West Hollywood. I ain't naming names.
She really worked me over good. She was just like Jesse James.
She really worked me over good. She was a credit to her gender.
She put me through some changes, Lord.
Sort of like a Waring blender."
-- Warren Zevon, "Poor, Poor, Pitiful Me"

conwaycaine

9/8/2009 3:14:00 PM

0


"Fred J. McCall" <fjmccall@gmail.com> wrote in message
news:c7kaa5p0jn0gu3tvkcekin6hgmg9mkqsk3@4ax.com...
> "conwaycaine" <conwaycaine@bellsouth.net> wrote:
>
> :
> :"Adam Whyte-Settlar" <ador@ble> wrote in message
> :news:lomdnfxSK7m5PDnXnZ2dnUVZ8ridnZ2d@westnet.com.au...
> :
> :> Well - I reaaly liked the fridge too, but a wee man with a magic stick
> :> that could take me on a tour of the universe would be nice.
> :
> :You get that when you check out of this existence.
> :
>
> But Adam wants his "wee man with a magic stick" in this life.


Adam is a man consumed by his curiosity.
He does not wish to wait for the Transition.


conwaycaine

9/8/2009 3:16:00 PM

0


"Adam Whyte-Settlar" <ador@ble> wrote in message
news:J-KdncVlx_2_SjjXnZ2dnUVZ8v6dnZ2d@westnet.com.au...
>
> "conwaycaine" <conwaycaine@bellsouth.net> wrote in message
> news:7K2dnX5KoagNtzjXnZ2dnUVZ_gadnZ2d@giganews.com...
>>
>> "Adam Whyte-Settlar" <ador@ble> wrote in message
>> news:lomdnfxSK7m5PDnXnZ2dnUVZ8ridnZ2d@westnet.com.au...
>>
>>> Well - I reaaly liked the fridge too, but a wee man with a magic stick
>>> that could take me on a tour of the universe would be nice.
>>
>> You get that when you check out of this existence.
>
> : )
>
> Always a catch with you religion-salesmen isn't there?

Send me your tithe and I'll modify the rules a bit.
Back to the tour, Toad's Wild Ride will pale in comparison.