PRB: Deployment on an Emulator Does Not Respond When You Select the COM1 Port in the Configure Emulator Settings Window (813562)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition

SYMPTOMS

When you configure emulator settings to use COM1 as the serial port1 for the Microsoft Pocket PC Emulator or Emulator for Microsoft Windows CE .NET, then you may receive the following error message when you try to deploy a smart device application on an emulator:
There were deployment errors. Continue?
If you click Yes, then the smart device application does not deploy the emulator.

CAUSE

When you specify the COM1 port for communication while you configure emulator settings, Visual Studio .NET tries to use the COM1 port to communicate with the device. The emulators (such as Pocket PC Emulator or Windows CE .NET Emulator) do not communicate through the COM1 port. Therefore, when you specify the Pocket PC or Windows CE .NET emulator as your deployment device and at the same time you specify the COM1 port as your communication port, you may receive an error.

RESOLUTION

To resolve the problem, change the value of serial port1 in the Configuring Emulator Settings window to None. To do so, follow these steps:
  1. Open Microsoft Visual Studio .NET (2003).
  2. Click Tools , and then click Options.
  3. In the Options window, expand Device Tools, and then click Devices.
  4. Select Pocket PC from the Show devices for platform list.
  5. Select either Pocket PC 2002 Emulator or Windows CE .NET Emulator from the Devices list.
  6. Select Emulator Startup Provider from the Startup server list, and then click Configure.
  7. In the Configure Emulator Settings window, click the Hardware tab.
  8. Select None from the Serial port1 list, and then click OK.
  9. Click OK to close theOptions window.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Open Microsoft Visual Studio .NET (2003).
  2. ClickTools, and then click Options.
  3. In the Options window, expand Device Tools, and then click Devices.
  4. Select Pocket PC from the Show devices for platform list.
  5. Select Pocket PC 2002 Emulator from the Devices list.
  6. Select Emulator Startup Provider from the Startup server list, and then click Configure.
  7. In the Configure Emulator Settings window, click the Hardware tab.
  8. Select COM1 from the Serial port1 list, and then click OK.
  9. Click OK to close the Options window.
  10. On the File menu, point to New, and then click Project.
  11. Under Project Type, click either Visual Basic Projects or Visual C# Projects. From the Templates list, select Smart Device Application, and then click OK.
  12. From the What platform do you want to target? list, select Pocket PC.
  13. From the What project type do you want to create? list, select Windows Application, and then click OK.
  14. On the Debug menu, click Start.
  15. From the Deploy dialog box, select Pocket PC Emulator , and then click Deploy.

REFERENCES

For more information, visit the following Microsoft Developer Network Web site:
Getting Started with Smart Device Extensions
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnroad/html/road04242002.aspSmart Devices 1.0:9600

Modification Type:MinorLast Reviewed:5/20/2005
Keywords:kberrmsg kbDeviceSpecific kbDeployment kbEmulation kbprb KB813562 kbAudDeveloper