VS2005 Smart Device form designer fails

All VS 2005 Smart device applications form designer fail to display forms - receive following error:SadTongue Tied

Unable to cast COM object of type 'Microsoft.VisualStudio.DeviceConnectivity.Interop.ConManClass' to interface type 'Microsoft.VisualStudio.DeviceConnectivity.Interop.ICcServer'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{EA537AF4-2226-4D26-BBC0-9CF3A82749A5}' failed with HRESULT: 0x80004002 (No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))).

at Microsoft.VisualStudio.DeviceConnectivity.Interop.ConManClass.GetDatastore(UInt32 dwLocale)
at Microsoft.CompactFramework.Design.CcDataStoreHelper.get_DataStore()
at Microsoft.CompactFramework.Design.CcDataStoreHelper.get_Platform()
at Microsoft.CompactFramework.Design.CcDataStoreHelper.GetPlatformProperty(String propertyID)
at Microsoft.CompactFramework.Design.CcDataStoreHelper..ctor(String platformID, String ndpVersion, String managedPlatformID)
at Microsoft.CompactFramework.Design.DeviceContextServiceProvider.SetSite(String platformInvariantName, String managedPlatformID, String ndpVersion, Object globalprovider, Object olditemcontext)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.NativeMethods.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.Initialize()
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
at System.ComponentModel.Design.DesignerHost.BeginLoad(DesignerLoader loader)
[2019 byte] By [faltopar] at [2008-1-31]
# 1
Did you have beta2 install? Have you have beta1 or any other previous version of Visual Studio 2005 on your machine? Can you try to delete your local datastore directory to see if it fixes the problem? The location of the datastore is
%USERPROFILE%\Local Settings\Application Data\Microsoft\CoreCon

Try delete and restart VS to see if it fixes your problem.

David

DavidTSo at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 2
Hi David:
I tried what you suggested and same results. It does seem to be a prior version problem though, because there was one time where I actually had a smart device up in the form design in Beta 1. The deploy to the emulator eventually failed and then when I upgraded to Beta 2 I have not been able to get past my current problem.
I do not know enough about going from one version to another and all the pitfalls to figure this out.
Thanks for tyring to help me.
David
faltopar at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 3
I've talk with one of our devs. This is because somehow the beta1 setup didn’t clean the interop assembly. To fix it, get the interop assembly Microsoft.VisualStudio.DeviceConnectivity.Interop.dll from a good Beta 2 install and overwrite the one on the customer’s machine (should be under Windows\assembly\GAC_MSIL\ Microsoft.VisualStudio.DeviceConnectivity.Interop).

Let me know if this works.

Thanks,

David

DavidTSo at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 4
Hi David:
Unable to find Microsoft.VisualStudio.DeviceConnectivity.Interop.dll anywhere.
Also, there is no sub-directory \GAC_MISL under Windows\assembly.
So 0 for 2 on this suggestion. It does seem to be linked with a bad install of Beta2 though. I am going to try to do a Beta 2 repair if I can.
-David
faltopar at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 5
David:
Thanks for your help. I was able to get past this problem by using the following steps:
1. MS web site: http://lab.msdn.microsoft.com/vs2005/uninstall/
2. There is a link just after step 14 in the paragraph:
"To download a tool which may help you clean your machine in preparation for installing Beta 2, please visit this link."
3. I ran this tool, did a repair on VS2005 which failed.
4. I then did a complete uninstall of VS 2005 using the installation CD.
5. I reinstalled VS 2005 and this problem went away.
6. I fired up a sample application which failed to deploy.- problem with prior save emulator state.
7. Went to C:\program files\microsoft device emulator\.
8. Executed dvcememanager.exe - cleared all saved states for all devices. It appears that while trying to deploy a smart device application under Beta 1, a saved state was holding things back.
Thanks again for your help.
David
faltopar at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...