安装了一个网上下载的wince的中文模拟器的sdk后,vs2005无法新建智能设备的工程,提示:“从用户数据存储中检索信息时出错,XML文档必须包含一个顶层元素”。网上搜索下,参考http://blog.csdn.net/menuconfig/article/details/5620708,说卸载IE8,压根没转过ie8,不对。不过下面的讨论里有如下内容,是正解。这里记录下。
解决方法如下: 1. 关闭VS2005 2. 重命名文件夹"c:/Documents and Settings/<user>/Local Settings/Application Data/Microsoft/CoreCon/1.0",这将删除所有关于设备配置属性的定制, 3. 重启VS2005,重建上述配置。
引自:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=140668& SiteID=1
Try Shutting down VS and renaming the following directory: "c:/Documents and Settings/<user>/Local Settings/Application Data/Microsoft/CoreCon/1.0" This will delete any customization of the device configuration properties in your user directory but it should recreate this the next time you launch VS.