Silverlight 4.0 - HttpWebRequest throwing ProtocolViolationException.

Posted by cmaduro on Stack Overflow See other posts from Stack Overflow or by cmaduro
Published on 2010-06-01T20:52:18Z Indexed on 2010/06/01 20:53 UTC
Read the original article Hit count: 501

I am getting a "System.Net.ProtocolViolationException: Operation is not valid due to the current state of the object." error when trying to call

 var request = (HttpWebRequest)WebRequest.Create(uri);

 request.Method = "GET";

 request.ContentType = "text/xml";

 request.BeginGetRequestStream(RequestCompleted, request);

© Stack Overflow or respective owner

Related posts about httpwebrequest

Related posts about silverlight-4.0