Can't Deploy to SmartPhone Emulator or Physical Device
My project compiles, the emulator is launched, but I get a dialog box which states: The operation could not be completed. Alternatively, I won't get the dialog box, but I'll get a status message in the IDE which states: Connect to device failed.
The log messages (see below) state that all attempts to connect have failed. It indicates that it has attempted to contact the device on IP 169.254.19.106. I'm not surprised that this would fail. I have no idea where in the world that IP address s coming from. My internal IP address is 192.168.1.6,
I have installed the DMA Transport and I see DMA Transport as a Transport option in the Properties dialog. I've tried to use both DMA and TCP Connect Transports, specifying both IP 127.0.0.1 and 192.168.1.6. This hasn't worked.
The Device Emulator Manager detects the emulator and shows that it is running.
I've seen reference to using a Loopback adaptor for this purpose. I can't understand why I'd need to do this. I'm on a network with a statically assigned IP address, so why would I need to install a Loopback adaptor?
Next problem:
I am also unable to deploy to my Audiovox SMT5600 which is connected via USB / ActiveSync. The message I get is: The current version of ActiveSync is not supported. Install the latest version fromwww.microsoft.com. This is so bogus. I was just on the Microsoft site last night and downloaded the latest ActiveSync. I'm running 3.8.0 (Build 5004).

What a mess. Thanks for any help which you can provide!
Joseph Geretz
Deploy started: Project: HelloWorld, Configuration: Debug Any CPU
No address is detected for the deployment target by the current connectivity bootstrap. If the target is an emulator, verify whether the network DHCP server is running.
All attempts to connect to the deployment target at port 5654 have failed. Addresses attempted:
169.254.19.106;fe80::203:ffff:feee:5f51%7;::1;fe80::1%1.
If target is an emulator, connection failed because no virtual switch driver is detected. Reinstall Device Emulator package. For more information, see Troubleshooting topics in Visual Studio Help.
Connect to device failed.
Additional info: I installed the loopback adaptor, but this hasn't made any difference. Again, I don't see why I should need this because I'm on a network.
I think the fact that VS is trying to deploy to 169.254.19.106 is a clue, but I don't know why it is attempting to use this IP address. Doesn't this IP address have something to do with having the Client configured for DHCP, but not having a DHCP Server? In my case, DHCP is irrelevant. I have a small network of 4 machines and I'm not using DHCP at all.
I've also deleted C:\Documents and Settings\Administrator.INTERNAL\Local Settings\Application Data\Microsoft\CoreCon (several times) but this hasn't made any difference.
Thanks for your help!
I upgraded my ActiveSync to v4.0 (I didn't find this on microsoft.com - is this Beta?) and now I am able to deploy to my Audiovox SMT5600. Although, I do get a dialog box: The operation could not be completed, after the executable transfers over to my device. What's that about, I wonder?
But more pressing, I am still unable to deploy to my emulator. I also notice that from the emulator I am unable to browse the Internet, although the host PC, my devleopment workstation, has an active connection to the Internet at all times. Might this be another symptom of the basic connectivity problem?
Thanks for your help!
One possibility is that you are using an emulator entry that is not using the DMA transport. You can verify this by going into the "Tools" menu, options, devices, devices, and by clicking "Pproperty" of the emulator in question. Make sure "Dma Transport" is selected, then restart the emulator. This will ensure you are using the dma transport. You should also delete any save state you might have created using the previous transport using the "Clear save state" from the File menu.
Another way to connect to the emulator is to use ActiveSync through the Device Emulator Manager, available from the "Tools" menu as well. From the manager, you can virtually craddle an emulator so that ActiveSync will connect to it. You can use the "Get Connected" wizard from ActiveSync, or select the "DMA" option in the connection settings. Note that ActiveSync only supports one connected device at a time, so make sure you do not have any connected device when you do this. Afterward, you will be able to use the "Device" entry in Visual Studio, just as if you had a real device connected to your computer. This will also help connect the emulator to the internet.
As for the device failures, which project type are you using? Is it a project that was created using VS2003 or eVC? Have you tried resetting the device? If that does not work, have you tried clearing the device?
I tried your suggestions but I don't think this is working.
No address is detected for the deployment target by the current connectivity bootstrap. If the target is an emulator, verify whether the network DHCP server is running.
Yet at the end:
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
So did it succeed, or not? How would I know? I don't see an icon for my application, and I can't even browse for it since the emulator doesn't include a File Explorer.
LAME! :-(
Full Build/Deployment Output:
Build started: Project: MyApp, Configuration: Debug Any CPU
MyApp -> C:\Documents and Settings\Administrator.INTERNAL\My Documents\Visual Studio 2005\Projects\MyApp\MyApp\bin\Debug\MyApp.exe
Deploy started: Project: MyApp, Configuration: Debug Any CPU
No address is detected for the deployment target by the current connectivity bootstrap. If the target is an emulator, verify whether the network DHCP server is running.
Deploying 'C:\Documents and Settings\Administrator.INTERNAL\My Documents\Visual Studio 2005\Projects\MyApp\MyApp\bin\Debug\MyApp.exe'
Deploying 'C:\Program Files\Microsoft Visual Studio 8\SmartDevices\Debugger\Target\wce400\armv4\cmtnpt_TcpAcceptNA.dll'
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
The deployments succeeded so your files should be on the emulator. One way to verify is to use the ActiveSync's Explorer functionality. Once you get the emulator connected over ActiveSync using the instructions from my previous post, select the "Explorer" item from the toolbar. You can navigate to \Program files\<your project name>\ to confirm the presence of the files.
It sounds like you are deploying a managed project. Have you tried using a c++ projects? Do you see the same problem? There might be a problem with the installation of NetCF on your device/emulator.
OK, I am making progress. I have gotten to the point where I can connect both my physical device, as well as the device emulator via ActiveSync. I've also gotten to the point where initiating a debug session will trigger a deployment of the compiled code onto either the physical device, or onto the device emulator. However, subsequent to the deployment, I receive a dialog box:The operation could not be completed
I have confirmed that the deployment is taking place by using the ActiveSync Explorer to examine the executable on the taget device (either physical or emulator). Subsequent to the deployment, something is going awry.
The full Visual Studio output is presented below.
(BTW, I don't think there is anything wrong with the NetCF on either the emulator or the device since when I launch the program manually on the device, it runs just fine.)
Thanks for your help!
Joseph Geretz
Build started: Project: SmartApp, Configuration: Debug Any CPU
Csc.exe /noconfig /nostdlib+ /warn:4 /define:DEBUG;TRACE;Smartphone /reference:
"C:\Program Files\Microsoft Visual Studio 8
\SmartDevices\SDK\CompactFramework\v1.0
\WindowsCE\mscorlib.dll" /reference:"C:\Program Files\Microsoft Visual Studio 8
\SmartDevices\SDK\CompactFramework\v1.0
\WindowsCE\System.Data.dll" /reference:"C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\v1.0
\WindowsCE\System.dll" /reference:"C:\Program Files\Microsoft Visual Studio 8
\SmartDevices\SDK\CompactFramework\v1.0
\WindowsCE\System.Drawing.dll" /reference:"C:\Program Files\Microsoft Visual
Studio 8\SmartDevices\SDK\CompactFramework\v1.0
\WindowsCE\System.Windows.Forms.dll" /reference:"C:\Program Files\Microsoft
Visual Studio 8\SmartDevices\SDK\CompactFramework\v1.0
\WindowsCE\System.Xml.dll" /debug+ /filealign:512 /optimize-
/out:obj\Debug\SmartApp.exe /resource:obj\Debug\SmartApp.frmAbout.resources
/resource:obj\Debug\SmartApp.frmBoard.resources /resource:
obj\Debug\SmartApp.Properties.Resources.resources /target:winexe
/win32icon:Dice.ico Point.cs Token.cs frmAbout.cs frmBoard.cs Game.cs Properties\AssemblyInfo.cs
Properties\Resources.cs
SmartApp -> C:\Documents and Settings\Administrator.INTERNAL\My
Documents\Visual Studio 2005
\Projects\SmartApp\SmartApp\bin\Debug\SmartApp.exe
Deploy started: Project: SmartApp, Configuration: Debug Any CPU
Deploying 'C:\Documents and Settings\Administrator.INTERNAL\My
Documents\Visual Studio 2005
\Projects\SmartApp\SmartApp\bin\Debug\SmartApp.exe'
========== Build: 1 succeeded or up-to-date, 0 failed, 1 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========