var resp = new StreamReader(ex.Response.GetResponseStream()).ReadToEnd();
dynamic obj = JsonConvert.DeserializeObject(resp);
var messageFromServer = obj.error.message;
More Related Contents:
- System.Net.WebException HTTP status code
- C# winform,what‘s “Form1.Close()" mean?
- Convert List to List
- How do you get the index of the current iteration of a foreach loop?
- How can you change Network settings (IP Address, DNS, WINS, Host Name) with code in C#
- Select Right Generic Method with Reflection
- Cannot step into .NET framework source code
- Can’t add script component because the script class cannot be found?
- What is the best scripting language to embed in a C# desktop application? [closed]
- What is the difference between Server.MapPath and HostingEnvironment.MapPath?
- How to use dependency injection with an attribute?
- WCF ServiceHost access rights
- Add Header and Footer for PDF using iTextsharp
- Multi Value Dictionary?
- Launching a process in user’s session from a service
- Escape button to close Windows Forms form in C#
- JsonValueProviderFactory throws “request too large”
- WPF ListView: Attaching a double-click (on an item) event
- How to use SqlCommand to CREATE DATABASE with parameterized db name?
- Changing a label’s text in another form in C#?
- Difference between returning and awaiting a Task in an async method [duplicate]
- C# list.Orderby descending
- C# 3.0 Auto-Properties – Is it possible to add custom behaviour?
- WPF TwoWay Binding to a static class Property
- How to add text to a WPF Label in code?
- IP Address in a MaskedTextBox?
- Is there a fiber api in .net?
- When should use Readonly and Get only properties
- Amazon SES Email address is not verified
- How to Read an embedded resource as array of bytes without writing it to disk?