Wednesday, January 7, 2009

Connect Mobile Emulator with Internet

Hi Friends

I am learning window mobile application development. I made one application in which i want to browse some web site.on window mobile device my application work fine but on Emulator it does not work, because whenever emulator launch it is not adopt my computer network setting ( which you can say Microsoft Development team fault ;). so I dig in to mobile emulator setting and find solution by which we can set our computer networking setting to emulator. for that Steps are
  1. First Install Microsoft ActiveSync software according to your Operating System
  2. Run Microsoft ActiveSync Software and browse File >> Connection Settings.
  3. In Connection Setting dialog box select DMA from dorp down display below Allow connection to one of the following
  4. Open Device Emulator Manager from Visual studio
  5. Right click on emulator and select connect option
  6. Once emulator running again right click on emulator and cardle the device

If you see nothing happened to your Windows Mobile Device Center, it doesn’t mean you missed some steps from the above. It happened only because the Device Emulator 1.0 is the one comes with Visual Studio 2005 has this cradle problem on Windows Vista.

The solution is to download Microsoft Device Emulator 2.0 and by installing 2.0, it will replace the old one. Read this note from its download page: “DeviceEmulator 2.0 has taken a few design changes to work with the Windows Vista operating system that enables the emulator to be cradled using the Windows Mobile Device Center”.

Thanks

Abhishek Hingu

Friday, January 2, 2009

Getting run time error message "The database file has been created earlier version of Sql Server compact."

Problem

When running samples/demos of the Sync Services intended for SQL Server CE 3.5 Beta 2 you receive the following message:
"The database file has been created by an earlier version of SQL Server Compact. Please upgrade using SqlCeEngine.Upgrade() method"
Cause

The reference in your project to the System.Data.SqlServerCe assembly is pointing to an older version of the file. This may occur if you already have Visual Studio 2005 installed on your PC.

Solution
In the Visual Studio project, ensure the file path of the System.Data.SqlServerCe reference points to the correct version – in this case SQL Server CE 3.5 Beta 2 (Desktop):
C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Desktop\System.Data.SqlServerCe.dll

An example of an incorrect file reference for SQL Server CE 3.5 Beta 2 is as follows:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\System.Data.SqlServerCe.dll