TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Alec Tucker
NA
3
5.7k
How to trap and handle EndPointNotFoundException
Dec 21 2011 11:59 PM
Hi all,
I've written a simple web service which I'm calling asynchronously from a WP7 app.
I had it all working OK with the web service running through VS2010, no problems. I then repeated the test without the web site running. What I get is an EndPointNotFoundException raised inside reference.cs.
Not entirely unexpected.
My question is, how to I elegantly trap and handle this when calling the web service asynchronously? Obviously putting the async call inside a try..catch block as little effect. The callback delegate never gets called, because the web site is not reached. I really don't want to manually edit the reference.cs file.
Any ideas on this? I can't be the first, and am hoping that I've missed something simple.
Thanks in advance.
Reply
Answers (
1
)
Different ways of hosting WCF services
Pass string parameter from windows form application to windows service through wcf