While i am trying to connect to Web Service in disconnected mode. i.e. internet is not available. I am getting the following error description from ex.Message.
"An error message cannot be dispalyed because an optional resource assembly containing it cannot be found."
With stack trace as follows ::
at System.Net.HttpWebRequest.finishGetResponse()
at System.Net.HttpWebRequest.GetResponse()
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse()
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse()
This make the PDA freeze and i have to reset it to operate.
If I am connected to the internet everything seems to be working fine.
Please suggest

Error while connecting to Web Service.
learneroob
That exception is expected without connectivity and you should handle it as appropriate.
As to hanging, why do you believe it's related to that exception Obviously it does not hang because of the exception as you can either print error message from your code or hit "Details" button in unhandled exception dialog.
pinoyz
By definition unhandled exception dialog only pops out if exception is unhanded, so you're not handing that exception. Please add exception handling code so this dialog would not pop up. Also chances are - it's the same "Could not establish the connection to the Network" message, you just don't have optional SR CAB installed on the problematic device so actual message can't be shown (please see this: http://blogs.msdn.com/netcfteam/archive/2004/08/06/210232.aspx).
I don't believe it's a missing assembly issues, but you can hard reset the device and reinstall NETCF to make sure installation is not corrupted.
To determine NETCF version you have please navigate to \windows and launch cgacutil.exe.
bubu
I have another PDA on which if i deploy the same application it gives a different error "Could not establish the connection to the Network" which I have already handled. I actually dont know which version of the CF2.0 it is using.
I think this is some assembly missing issue.
On the Unhandled exception window if i hit Details and then Quit. The PDA freezes.