Windows CE

Wednesday, April 8, 2009

device platform does not exist in your datastore

Hi,
I Recently downloaded a VS2005 Smart device Project from internet, and ended up with a Error Message while starting the Project.

---------------------------
Microsoft Visual Studio
---------------------------
Error retrieving information from user datastore. Platform not found.
---------------------------

The project could not be opened because it refers to a device platform that does not exist in your datastore.
---------------------------


Clicking OK or Cancel will result the same.Project will not be loaded.

Its clear from the message that the developer had saved or created the Project with some target device, which is not available in my development workstation.

Many of us has encountered with this problem. Now the USER is left with three choices.

  1. Install the platform SDK that supports the project you want to load and then change the target platform type to your target device.(Safest Option)
     2. Create a new sample Project with available SDK and import all the source code and references from the other project.
(Time Consuming but better than 1st option if you cant download SDK.)

     3. Last option, if you don't have time to download and install SDK, or don't wanna import the source code and resolve all the warning and errors.

open the .csproj file in notepad (Not .csproj.USER)
Locate the line 
<PlatformID>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</PlatformID>

and replace this to

<PlatformID>3C41C503-53EF-4c2a-8DD4-A8217CAD115E</PlatformID>
---- To open with Pocket PC 2003
or with
 <PlatformID>yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy</PlatformID>
   ---- from your existing projects for the target platform.

And the work is done.You can run the Project with your Target Device.
YAHHHHHOOOOOOOOO......
(Easiest trick, but its always safe to run the code in respective target )

2 comments:

Anonymous said...

Thankyou so much! Your solution worked. I have replaced "PlatformID" value with the value you provided as it is similar to my machine's blank project's platformID. Too good thanks.

Anonymous said...

i reinstalled Vs2005, wm5sdk,wm6sdk, vs2005sp1, activesync. reinstall, not uninstall and then install. just before starting to uninstall vs2005, i moved the whole directory of vs from my documents, the one that contains the "Settings" subdirectory. Then i tried once again and it worked. it informed me that the settings directory could not be found and it recreated the settings. and then worked .