Archivi tag: WebClient

WebClient on portable library – Consuming Rest service async

If you are looking for WebClient inside a portable library, use nu get. Find Microsoft.Net.Http and download Microsoft HTTP Client Libraries And here how to use HttpClient (this is an old post): Portable HttpClient for .NET Framework and Windows Phone

Pubblicato in .Net, c#, Portable, Silverlight | Contrassegnato , , , | Lascia un commento

The remote server returned an error: (406) Not Acceptable

This error occurs very infrequently in Web browsers, because most browsers will accept any data returned from the Web server. If the client is not a Web browser, then anyone can only investigate the problem by looking at the Accept … Continua a leggere

Pubblicato in c# | Contrassegnato , , , | 2 commenti