VS2005 doesn't present the form designer for Pocket PC 2003 Device Application

Hi,

I try to use VS2005 for building a new tool for Pocket PC. When I create a new project of Pocket PC 2003 Device Application, the project is being created, but instead of showing the form designer for building the form, I see a warning message: "Input string was not in a correct format".

This happens as soon as the project is being created, without me interfering. No matter what, I can't get the designer to be presented (and I tried creating a new form from scratch, deleting the form's designer.cs file, etc).

The full text of the warning is:

at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Microsoft.CompactFramework.Design.DeviceColorMap.UpdateSystemColorFromXml(String xmlText)
at Microsoft.CompactFramework.Design.DeviceColorMap.Initialize(Object initialData)
at Microsoft.CompactFramework.Design.SystemValueProviderService.Microsoft.CompactFramework.Design.ISystemValueProviderService.CreateDeviceMap(Type type)
at Microsoft.CompactFramework.Design.DeviceCustomTypeDescriptor.GetProperties(Attribute[] attributes)
at Microsoft.CompactFramework.Design.DeviceCustomTypeDescriptor.GetProperties()
at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties()
at System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes)
at System.ComponentModel.TypeDescriptor.GetProperties(Object component)
at Microsoft.CompactFramework.Design.FilterTypeDescriptionProvider.RegisterInstance(Object instance, IServiceProvider provider, Boolean recurseInstance, Boolean setdefaults, Boolean toplevel, Dictionary`2 exceptedProperties, Dictionary`2 childexclusions)
at Microsoft.CompactFramework.Design.CreateInstanceService.OnComponentAdding(Object sender, ComponentEventArgs ce)
at System.ComponentModel.Design.DesignerHost.AddToContainerPreProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

Is this a known problem? Any idea how to fix it?

Thanks,

Dana

[3675 byte] By [DanaBoim] at [2007-12-23]
# 1

Hi,

I had a similar problem. I reinstalled .NET - Framework 2.0 and the designer works correct. I hope i helps.

Michael

MichaelDebus at 2007-8-30 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 2

Thanks. I just tried it, but it still doesn't work.

Any other ideas?

Thanks,

Dana

DanaBoim at 2007-8-30 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 3

Please try the following:

Launch VS from command prompt by typing the following:

devenv /Log c:\VSLog.xml

This will create a log file called VSLog.xml on your C: drive. Now try creating a new Smart Devices project. When it fails, it should get logged into the log file.

devenv.exe is located under C:\Program Files\Microsoft Visual Studio 8\Common7\IDE

Manav

mgaur_MSFT at 2007-8-30 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 4

Thanks. The only warning I found in the log is the following:

<entry>
<record>13</record>
<time>2006/07/18 06:06:13.252</time>
<type>Warning</type>
<source>Microsoft Visual Studio Appid Stub</source>
<description>CheckPackageSignature failed; invalid Package Load Key</description>
<guid>{D79B7E0A-F994-4D4D-8FAE-CAE147279E21}</guid>
</entry>

Do you think it can be the cause of my problem? Other than that, everything seems normal in the log.

Dana

DanaBoim at 2007-8-30 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 5

This can be a problem. Try repairing your installation or even reinstall if repair doesn't help.

Manav

mgaur_MSFT at 2007-8-30 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 6

Finally, I got a solution for my problem. Take a look at: http://cwaters.spaces.live.com/blog/.

The solution in short is:

1. Exit out of Visual Studio 2005.
2. Launch REGEDIT.
3. Backup the computer's registry settings by doing an export on the
HKEY_CURRENT_USER branch.
4. Check the current setting for HKEY_CURRENT_USER > Control Panel > International > sPositiveSign. It is probably blank.
5. Change the setting to two double quotes ("").
6. Exit REGEDIT.


Dana

DanaBoim at 2007-8-30 > top of Msdn Tech,Smart Device Development,Smart Devices General...