INFO: Preparing Device for Connectivity in Smart Device Application for Visual Studio .NET (813558)



The information in this article applies to:

  • Microsoft .NET Compact Framework
  • Microsoft Visual Studio .NET (2003), Professional Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition

SUMMARY

Devices should be prepared to enable deployment and debugging of a smart device application over a TCP/IP connection. This article describes how Visual Studio .NET prepares the device and how to prepare a device with a security-enhanced method.

MORE INFORMATION

How Visual Studio .NET Prepares the Device

When you run a .NET Compact Framework application from Visual Studio .NET 2003, Visual Studio .NET deploys your application and all the components that your application requires, including .NET Compact Framework and Microsoft SQL Server CE. Visual Studio .NET checks the target platform to confirm that .NET Compact Framework is installed. If Visual Studio .NET does not find .NET Compact Framework, Visual Studio .NET automatically copies and installs .NET Compact Framework before it runs your application. This installation process occurs the first time that you try to run your application on a device and also after a hard reset of the device.

Visual Studio .NET uses a similar process if your application uses SQL Server CE. Visual Studio .NET checks the target platform to confirm that the SQL Server CE components are installed. If Visual Studio .NET does not find these components, Visual Studio .NET automatically copies and installs the required SQL Server CE components before it runs your application.

After Visual Studio .NET determines that all the components that your application requires are present, your application is copied to the target platform, is placed in the directory that you specified in your project configurations, and is opened.

How to Prepare the Device with a Security-Enhanced Method

A device is prepared automatically when the device is first deployed and is connected to the computer over a USB ActiveSync connection. You can also prepare the device when ActiveSync is connected over a TCP/IP connection. However, an invader can see the information that is shared between the desktop and the device when ActiveSync is connected over a TCP/IP connection. For enhanced security, use a USB connection to prepare the device and to disconnect the ActiveSync TCP/IP connection.

Modification Type:MajorLast Reviewed:10/9/2003
Keywords:kbinfo KB813558 kbAudDeveloper