In SP2, Sockets don't work in the Emulator?

M

Mark McKnight

I installed the SP 2 (before it was recalled) and I ran it in my emulator.
The app. ran, but it couldn't open a socket (either to our server or to a
web service). I put SP1 back on and it worked.

1. How do I submit this bug?

2. I found the .NET CF .CAB files VS .NET copies to the emulator and I
overwrote it with the .CAB file for SP2. Is this the correct way to install
it?

Thanks :)
 
J

Jonathan Wells [msft]

Hi Mark,

Thanks for your feedback. Can you give me some more detail about your
particular problem? Do you have a code snippet that you can provide that was
failing?

The correct way to install a service pack is to either choose the End User
redist, which uses ActiveSync and drops the correct CAB to your device for
you and installs it. Or to use the developer redist and copy the correct CAB
to the device yourself and then launch it to install.

Overwriting the CAB files in the Visual Studio .NET 2003 directory structure
is not a supported method for installing and getting the service packs to
your device.

cheers jonathan
--
Jonathan Wells
Product Manager
..NET Compact Framework
http://msdn.com/mobility

This posting is provided “AS IS” with no warranties, and confers no rights.
 
M

Mark McKnight

First, what's the "supported" way to install the SP2 on the Emulator?
It's probably easy, but I can't see how.

I'm using standard Web References in the project. I make the web method
call and it throws a "WebException" immediately in the Emulator. But it
works with CF SP1 and with SP2 ON THE DEVICE !

Also, I attempt to open a WebRequest myself and it also fails with the
same exception immediately.

try
{
requestObj = (HttpWebRequest)WebRequest.Create("http://" + serverHost +
":" + serverPort + "/");
requestObj.Method = "POST";

// THIS LINE throws "WebException"
inputStream = requestObj.GetResponse().GetResponseStream();

...
}
catch(Exception e) { ... }
 
A

Alex Feinman [MVP]

In one of the earlier threads someone noticed that SP2 treats the setting
"My Network Card Connects to" in a way opposite to SP1 and before. Try
changing this setting on the emulator.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top