[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

Catch Exceptions for Asyncronous Invoke

Guogang

7/24/2003 10:14:00 PM

How can I catch exceptions of web service, when I am using Asyncronouse
Invoke (like: myService.BeginGetCustomers()) I want to catch exceptions
like: connection timeout.

In my case, if the web service is disconnected, then the call to
EndGetCustomers() will hang forever.

Thanks,
Guogang


16 Answers

Guogang

7/24/2003 10:31:00 PM

0

Looks like there is an exception thrown for EndGetCustomer(), but because it
is in the callback function and called by another thread, the exception just
flying away without being caught anywhere.

Now, I add a try, catch block around the EndGetCustomer() to catch the
exception. It works.

"Guogang" <nospam@no_such_domain.com> wrote in message
news:%23$WcNDjUDHA.2056@TK2MSFTNGP10.phx.gbl...
> How can I catch exceptions of web service, when I am using Asyncronouse
> Invoke (like: myService.BeginGetCustomers()) I want to catch exceptions
> like: connection timeout.
>
> In my case, if the web service is disconnected, then the call to
> EndGetCustomers() will hang forever.
>
> Thanks,
> Guogang
>
>


Buster Norris

8/25/2011 3:03:00 AM

0

Summary: Real name Kathy. A 4' 8" negro, probably wider than she is
tall. Lies frequently but after many beatings has become another
usenet zoo monkey. Liars, once they have been exposed, frequently
revert to behavior most similar to a zoo monkey who sits in the cage
throwing feces at passersby but saying nothing of value.

[][][][][][]


The DemocRAT Hall Of Shame http://www.democrathallof... asks
"Why do you always LIE?"

On Thu, 5 May 2011 07:53:35 -0700 (PDT), robw <noddy093@comcast.net>
wrote:
>Major Leaguers don't use aluminum bats.
>That's for the minors and Little League.

Oops! Caught LYING!

"For many players, this is the first time they have ever used wooden
baseball bats, as

aluminum bats are most common in the amateur game."
http://en.wikipedia.org/wiki/Minor_leagu...

Posted from:
The DemocRATs Hall of Shame!
http://www.democrathallof...

Buster Norris

8/25/2011 3:04:00 AM

0

Summary: Ramon is foreign transplant originally from Venezuela,
probably a beaner terrorist. An ultra-left, open-borders
pretend-American. He lives and works in Houston, TX.

[][][][][][]
The DemocRAT Hall Of Shame http://www.democrathallof... asks
"Why do you always LIE?"

[Courtesy of Buster Norris]

On Thu, 2 Jun 2011 22:33:40 -0700 (PDT), Ramon F Herrera
<goposter@jonjay.com> wrote:
>I proudly hail from the country that has:
>(a) The most Miss Universe crowns.

LIAR!!!!!!!!!!!!!!!!!!!!!!!!!

You're a turd-colored Socialist greezer from Venezuela, the United
States of America has MORE Miss Universe wins...........

http://en.wikipedia.org/wiki/List_of_Miss_Universe_ti...

Buster Norris

8/25/2011 3:04:00 AM

0

Summary: Real name Kathy. A 4' 8" negro, probably wider than she is
tall. Lies frequently but after many beatings has become another
usenet zoo monkey. Liars, once they have been exposed, frequently
revert to behavior most similar to a zoo monkey who sits in the cage
throwing feces at passersby but saying nothing of value.

[][][][][][]


The DemocRAT Hall Of Shame http://www.democrathallof... asks
"Why do you always LIE?"

]Courtesy of Buster Norris]

On Tue, 17 May 2011 15:48:28 -0700 (PDT), robw <noddy093@comcast.net>
wrote:
>On May 15, 10:28?pm, Buster Norris <bustyourf...@rocketmail.com>
>wrote:
>> On Sun, 15 May 2011 10:33:08 -0700 (PDT), robw <noddy...@comcast.net>
>> wrote:
>> >On May 14, 11:29?pm, Buster Norris <bustyourf...@rocketmail.com>
>> >wrote:
>> >> You didn't even know you COULD use wifi at Barnes & Noble until PG
>> >> sent you a list...............
>> >I rather think I already knew about the places that offer wifi Pansy/
>> >Busterass.
>> And thats why you NEVER ONCE posted from ANY of them until AFTER
>> Patriot Games sent you the list...................
>> HAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!
>That's not true.
>I've been using them for quite some time now.
>Are you stupid and a faggot or just one or the other?

You have NOT used ANY of them BEFORE PG sent you the list...........

PROVE ME WRONG:_______________________ Post just one link to a message
in Google from you from one of those places........

IF YOU DO NOT OBEY THEN YOU PROVE YOU LIED!!!!!!!!!!!!!!!!

HAAAAAAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!!!!!!!!!!!!

Your 24 hours are up....................

YOU LIED!!!!!!!!!!!!!!

Posted from:
The DemocRATs Hall of Shame!
http://www.democrathallof...

Anonymous@nowhere.com

8/25/2011 11:26:00 AM

0

Did you want to make some sort of comment or did you just hit "send" too
quickly?

On 8/24/2011 9:35 PM, don Gabacho wrote:
> On Wednesday, August 24, 2011 9:23:35 PM UTC-4, anonymous wrote:
>> On 8/24/2011 8:34 PM, don Gabacho wrote:
>>> On Wednesday, August 24, 2011 6:01:55 PM UTC-4, anonymous wrote:
>>>> On 8/24/2011 5:43 PM, don Gabacho wrote:
>>>>> On Wednesday, August 24, 2011 3:47:01 PM UTC-4, Ramon F Herrera wrote:
>>>>>
>>>>>
>>>>>> Some words emigrate legally, others not...
>>>>>
>>>>> Do you see what I mean "anonymous"?
>>>>
>>>> No.
>>>
>>> You do not see his saying that even "words" can be "legal or not"?
>>
>> I see it, but I don't see any significance either way, nor what point
>> you are trying to make. It was a meaningless statement.
>>
>>>
>>>>> It's been routine in this group for years fopr essentially the Mexican Government' censors to police words as being even "legal" or "not".
>>>>>
>>>>> South of the border the Inquisition never died; and now its here.
>>>>
>>>> A word is "legal", whatever that implies, if it appears in the
>>>> dictionary.
>>>
>>> So? You agree with essentially the Mexican Government's censors that if a word does not appear in a dictionary it is "illegal."
>>
>> No. It is a useless concept. Illegal means in violation of the law.
>> What law is involved here? It is not like the French Academy that
>> stands guard over their language (and fights a losing battle to such
>> things as l'hamburger and l'weekend).
>>
>>>
>>> Frankly, W(ho)G(ives)AS(hit)
>>>
>>> For one: Ramon "El Meglo" Herrara and the Mexican Government including the Mexican Government's proxies embedded in groups like this and even US Governance and media.
>>
>> So you say. I don't see it.
>>
>>>
>>> For two: you.
>>
>> Nah.
>>
>>>
>>> You had wondered why he never answers a question.
>>
>> Because he has half thought things out and made sweeping generalization
>> with no evidence to back them up. When called on it, he retreated into
>> the depths of cyberspace and hibernated for a while. In that one
>> respect (not providing proof when confronted) he is very much like a
>> certain someone (nasty troll) in another group -- except that Ranom
>> doesn't curse and rant the way he does.
>

Anonymous@nowhere.com

8/25/2011 11:31:00 AM

0

On 8/24/2011 9:54 PM, don Gabacho wrote:
> On Wednesday, August 24, 2011 9:23:35 PM UTC-4, anonymous wrote:
>> On 8/24/2011 8:34 PM, don Gabacho wrote:
>>> On Wednesday, August 24, 2011 6:01:55 PM UTC-4, anonymous wrote:
>>>> On 8/24/2011 5:43 PM, don Gabacho wrote:
>>>>> On Wednesday, August 24, 2011 3:47:01 PM UTC-4, Ramon F Herrera wrote:
>>>>>
>>>>>
>>>>>> Some words emigrate legally, others not...
>>>>>
>>>>> Do you see what I mean "anonymous"?
>>>>
>>>> No.
>>>
>>> You do not see his saying that even "words" can be "legal or not"?
>>
>> I see it, but I don't see any significance either way, nor what point
>> you are trying to make. It was a meaningless statement.
>
> I'll try to be clear given it is a concept difficult for civilized people to realize much less accept: The goal of essentially the Mexican Government's censors is to foil any rational discourse that could hinder imposing its hegemony in the USA.

The last time I heard such nutty statements was when Joseph Mccarthy was
a senator and there was supposed to be a Red around every corner. Now
it isn't Russia, its Mexico? If you tell me the city where you live, I
can look up some good psychiatrists for you.

don Gabacho

8/25/2011 5:40:00 PM

0

On Thursday, August 25, 2011 7:31:22 AM UTC-4, anonymous wrote:

> The last time I heard such nutty statements was when Joseph Mccarthy was
> a senator and there was supposed to be a Red around every corner...

"Nuttier" than McCarthy's "Red around every corner" when the Russians were not even coming, is your attempt to equate that with the Mexicans and their foul governance already here---and still coming.

You've already been told that Paul Revere did not shout "There's a Tory around every corner and the British are not coming."

His alert in fact flushed the Tories from around every corner and turned back the Brits.

Obviously a scenario that, in this case, you labor to foil.

Please do spare us your follow-up. As you know, we heard it before.





don Gabacho

8/25/2011 5:52:00 PM

0

Google did..

Anonymous@nowhere.com

8/25/2011 6:37:00 PM

0

On 8/25/2011 1:40 PM, don Gabacho wrote:
> On Thursday, August 25, 2011 7:31:22 AM UTC-4, anonymous wrote:
>
>> The last time I heard such nutty statements was when Joseph Mccarthy was
>> a senator and there was supposed to be a Red around every corner...
>
> "Nuttier" than McCarthy's "Red around every corner" when the Russians were not even coming, is your attempt to equate that with the Mexicans and their foul governance already here---and still coming.
>
> You've already been told that Paul Revere did not shout "There's a Tory around every corner and the British are not coming."
>
> His alert in fact flushed the Tories from around every corner and turned back the Brits.
>
> Obviously a scenario that, in this case, you labor to foil.
>
> Please do spare us your follow-up. As you know, we heard it before.

I have already described you accurately, so why bother?

don Gabacho

8/25/2011 10:41:00 PM

0

On Thursday, August 25, 2011 2:36:54 PM UTC-4, anonymous wrote:
> On 8/25/2011 1:40 PM, don Gabacho wrote:
> > On Thursday, August 25, 2011 7:31:22 AM UTC-4, anonymous wrote:
> >
> >> The last time I heard such nutty statements was when Joseph Mccarthy was
> >> a senator and there was supposed to be a Red around every corner...
> >
> > "Nuttier" than McCarthy's "Red around every corner" when the Russians were not even coming, is your attempt to equate that with the Mexicans and their foul governance already here---and still coming.
> >
> > You've already been told that Paul Revere did not shout "There's a Tory around every corner and the British are not coming."
> >
> > His alert in fact flushed the Tories from around every corner and turned back the Brits.
> >
> > Obviously a scenario that, in this case, you labor to foil.
> >
> > Please do spare us your follow-up. As you know, we heard it before.
>
> I have already described you accurately,..

No.You even started with a presumption about me and a man and a committee, I too remember and have always alway deplored.

>...so why bother?

At this point, Herr Anonymous, to discover if you are just plain stupid, unprincipled or both.