hye_heena

hi all,

I am having the application that simply fetches the site contents and display it on the form. But i m getting error "PROTOCOL ERROR". i dnt knw whats wrong with it. its a simple code of requesting and responsing. thts all. nothing else.

Plz help. Coz i m not able to run my main application also. thanx in advance.



Re: .NET Compact Framework Application does not run if the GPRS is activated

hye_heena

hi,

In more depth, i found tht the error comes,


catch (WebException webex)
{
switch (webex.Status)
{
case WebExceptionStatus.ProtocolError :
HttpWebResponse httpResponse = (HttpWebResponse)webex.Response;
txtresult.Text = httpResponse.StatusCode.ToString();
break;

}

}

I am getting the statuscode as LengthRequired, tht specifies Content Length.But i simple fetching the web page and sending no data. Wht to so for this Plz help.





Re: .NET Compact Framework Application does not run if the GPRS is activated

hye_heena

hi,

I m getting different types of errors. Now i m getting SendFailure error also. Also SocketException raised. Plz any1 for help.





Re: .NET Compact Framework Application does not run if the GPRS is activated

AndrewBadera

we need to see more of your code.