views:

43

answers:

2

I want my application send a report when it crashes. I find that using web service is the best solution but I've never create a web service before and after it created, how to make it work? Somebody help me please!!! (sorry for my bad english)

+1  A: 

Take a look at the Windows Communication Foundation. There's a videos section that may help.

bendewey
A: 

The best thing to do for handling errors in your program is the simplest thing, because simple tasks are the least likely to fail.

Web services are most definitely not the simplest. They add several more layers of configuration, technology and custom code that can fail.

Your application should at the very least write error messages with any important information about the error to a log file, so you can find out what happened.

The next simplest step would be to send a simple e-mail indicating that the program had an error, with any useful information.

The email address and SMTP server you need to successfully send the message should be in the configuration information for the application.

If you still want to add sending your error information to a web service after logging and e-mail, that's fine - at least you will have a log and e-mail message about any web services failures you encounter. :-)

Ron

Ron Savage