Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myErrorMsg = WebClient.DownloadString("MyBadService.svc");
- catch ( WebException exception )
- {
- string responseText;
- using(var reader = new StreamReader(exception.Response.GetResponseStream()))
- {
- responseText = reader.ReadToEnd();
- }
- }
Add Comment
Please, Sign In to add comment