Visual Studio 2005 Beta 2 - Emulator problem

Hi!

I've got a problem and wonder if anyone else has it (and has resolved it)
My problem is as follows .. I create a new device application and try to run in in emulator.. the emulator starts just fine, but it won't connect to it! At all!
The error is "Connection failed. The system cannot find the path specified."

Thanks in advance,
Tadej


Answer this question

Visual Studio 2005 Beta 2 - Emulator problem

  • nigelborrill

    My problem is slightly different:

    "Error: The saved state file is from another version of the emulator and is not compatible with the current emulator."

    Any idea where the saved state file is stored so I can delete it

    thanks.

  • Thomas Moore

    There are two possible directory where you might have older save-states.  In the global directory:
    \Documents and Settings\All Users\Application Data\Microsoft\Device Emulator
    or in your user directory:
    \Documents and Settings\<your user>\Application Data\Microsoft\Device Emulator

    You will want to delete the .dess files in these directory.  In the RTM version of Whidbey, we will have a better way of handling this error.




  • Kal_Torak

    If you have installed a previous version of VS2005 on a computer, you might still have configuration files that are now invalid.  Close VS, delete the following directory:
    \Documents and Settings\<localuser>\Local Settings\Application Data\Microsoft\CoreCon
    and restart VS



  • pongopiprakash

    TadejK,

    I am having the exact same problem. Here are the steps to reproduce:

    -Start a new SmartPhone 2003 Project
    -Left Menu Item - "Cancel" - mnuCancel
    -Right Menu Item - "Say Hello" - mnuSayHello
    -mnySayHello_Click event as follows:

    Private Sub mnuSayHello_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuSayHello.Click

    Me.Label1.Text = "Hello World"

    End Sub


     


    Start debugging and the SmartPhone 2003 SE Emulator appears. VS.Net 2005 beta 2 reports it is deploying the application. VS.Net reports "There were deployment errors" - Continue Yes No Click No. VS.Net's error list reports 1 error....Failed to connect to device. If you click yes, a second error dialogue appears - "The operation could not be completed. The system cannot find the path specified." Click 'OK' and VS.Net's error list show's...Failed to connect to device.

    I have tried soft/hard resetting the device emulator as well as the Clear Saved State option to no avail. Any assistance would be greatly appreciated.

    I should note that this machine has VS.Net 2003 installed on it with the Smartclient SDK and it also had VS.Net 2005 beta 1. I followed the instructions for removal of VS.Net 2003 beta 1.

    John Walker

  • ETor

    I had the same problem so from a previous tip for vs.net 2005 beta 1 I added the service Virtual Machine Network Services to my network connection. I still got the same error so then I saw this tip and deleted the CoreCon directory and it worked fine. (I tried removing the Virtual Machine Network Services to see if just deleting the corecon directory solved the problem but I was back to the original problem.)

    Now if I deploy to an unsaved state emulator the deploy works fine. If I save the state and then deploy it fails the first time but if I leave the emulator up and then try the deploy again it works.

    The reason I am trying to save the state is so I don't have to deploy the NETCFV2.ppc.armv4.cab file and the System_SR_enu.cab file. Perhaps there is another technique I can use to always get those on the emulator.

    Two other issues that I might as well mention here:
    1. When debugging an app in the emulator the cursor is a wait cursor unless I move it over a spot on the emulator which changes it to an arrow. This makes it a little tough to tell when the complete deployment of my app to the emulator is finished.

    2. If I close the emulator vs.net 2005 does not stop debugging. I'm pretty sure it used to in vs.net 2003 but I could be mistaken. I go debug->stop debugging and at that point I get the following message:
    "A fatal error has occurred and debugging needs to be terminated. For more details .... HRESULT=0x80072746. ErrorCode=0x0."

    At that point debugging is stopped and everything is okay but I thought you should know about this.

    Brian



  • rajuraju

    So, is anyone else experiencing this problem As it stands now, I cannot debug Smartphone Apps using the emulators. Maybe it's just something hosed on my PC Any help would be appreciated.
  • Balaji Thiruvenkataraju

    There is no simple way in the Smartphone Os to specify an ip for its network card.  I would suggest that you use the loopback adapter solution.  Installation information can be found here: http://support.microsoft.com/default.aspx scid=kb;en-us;839013
    After installing it, make sure the smartphone emulator selects this loopback adapter in the network options, available in VS in Tools->Options->Devices->Devices options->smartphone emulator->properties->properties->Network->Ne2000.  Close and reopen the emulator and that should fix the deployment problem you are getting for the smartphone image.






  • LMiranda

    Carl,

    Ok, I deleted the CoreCon folder, restarted VS and tried to debug again. This time I get an error - Connect to device failed. Under the file column of the error list, it states - Conman HelpText System. Any ideas Thanks again for your assistance.

    Regards,

    John Walker

  • Linda-De

    Both of these issues are known and will be fixed before RTM is completed.


  • Colin Hardie

    Ok, this worked great. Thanks very much for the asistance, Carl. I can now start building some cool stuff for my Audiovox SMT5600 Big Smile

    John W.

  • nkabirwa

    worked thanks!
  • raindrops123

    Can you give us some more details on what is happening

    Are you launching the emulator from the IDE Have you tried connecting to the emulator using the Device Emulator Manager



  • jonsanity

    By default, Visual Studio 2005 Beta 2 uses tcpip as the transport to the emulator.  I suggest that you verify the ip of the emulator.  To do this on a pocket pc, go into settings, connections, network cards, Ne2000 compatible ethernet driver.  Try to ping this ip from your desktop computer.  If it times out, then you will have to configure the emulator to be able to use your network.  You can manually set an IP in the Ne2000 card settings, or verify your network settings to ensure that your DHCP server allows the emulator to get an ip.

    Another solution would be to install the loopback adapter.  You can find instructions on how to do that at :
    http://support.microsoft.com/default.aspx scid=kb;en-us;839013


  • Alexcs786

    Smile Ok, this corrected the problem and I was able to connect and deploy an app to the Pocket PC Emulator. My network is not using DHCP, so I indeed had to establish an IP address manually.

    Now, how about for Smartphone 2003 I am assuming I have to do something similar under Settings - Data Connections, but I am kind of lost in there Can you point me to any resources

    Finally, thanks for the help. It is very much appreciated.

  • Visual Studio 2005 Beta 2 - Emulator problem