您的位置:首页 > 其它

由于数据存储中不存在引用的设备平台 因此无法打开项目

2010-12-06 09:46 585 查看
我安装了vs.net想新建一个智能设备的project,然后提示错误就出来了:

由于数据存储中不存在引用的设备平台 因此无法打开项目!

我的解决方法有2种:

(1)把C:/Documents and Settings/Administrator/Local Settings/Application Data/Microsoft/CoreCon/ 下面的内容删除

(2)把下面的这段代码拷到C:/Documents and Settings/Administrator/Local Settings/Application Data/Microsoft/CoreCon/1.0/conman_ds_servicecategory.xsl 的第四行下面(SERVICECATEGORYCONTAINER 这行)能解决这个问题

<SERVICECATEGORY Name="Application Level Transport Service" ID="B333580E-3924-492e-98E5-DF57E787591B">
<SERVICEINFOCONTAINER>
<xsl:element name="SERVICEINFO">
<xsl:attribute name="Name">
<xsl:value-of select="LANGUAGE/MICROSOFT_SERVICECATEGORIES_8_0/TRANSPORT_TRANSPORTNAME_TCPCONNECT"/>
</xsl:attribute>
<xsl:attribute name="ID">D8E78E43-D8D6-4e57-8AD4-2164254C16D5</xsl:attribute>
<xsl:attribute name="Protected">true</xsl:attribute>
<PROPERTYCONTAINER>
<PROPERTY ID="default" Protected="true">yes</PROPERTY>
<PROPERTY ID="type" Protected="true">tcp_connect</PROPERTY>
<PROPERTY ID="ip" Protected="true">0.0.0.1</PROPERTY>
<PROPERTY ID="port" Protected="true">5655</PROPERTY>
<PROPERTY ID="device:ip" Protected="true">0.0.0.1</PROPERTY>
<PROPERTY ID="deviceort" Protected="true">5655</PROPERTY>
<PROPERTY ID="LocalAssemblyFile" Protected="true" _UseCcRelativePath="true">bin/tcpconnectionc.dll</PROPERTY>
<PROPERTY ID="DebuggerTransport" Protected="true" _UseCcRelativePath="true">transports/desktop/cmtnpt_tcpconnect.dll</PROPERTY>
<PROPERTY ID="LocalTransportFile" Protected="true" _UseCcRelativePath="true">target/wce400/%cpu%/TcpConnectionA.dll</PROPERTY>
</PROPERTYCONTAINER>
</xsl:element>
<xsl:element name="SERVICEINFO">
<xsl:attribute name="Name">
<xsl:value-of select="LANGUAGE/MICROSOFT_SERVICECATEGORIES_8_0/TRANSPORT_TRANSPORTNAME_DMA"/>
</xsl:attribute>
<xsl:attribute name="ID">26753017-B5BB-4b67-BEE3-862676DE23DC</xsl:attribute>
<xsl:attribute name="Protected">true</xsl:attribute>
<PROPERTYCONTAINER>
<PROPERTY ID="default" Protected="true">yes</PROPERTY>
<PROPERTY ID="type" Protected="true">tcp_connect</PROPERTY>
<PROPERTY ID="ip" Protected="true">0.0.0.1</PROPERTY>
<PROPERTY ID="port" Protected="true">5655</PROPERTY>
<PROPERTY ID="device:ip" Protected="true">0.0.0.1</PROPERTY>
<PROPERTY ID="deviceort" Protected="true">5655</PROPERTY>
<PROPERTY ID="LocalAssemblyFile" Protected="true" _UseCcRelativePath="true">bin/desktopdma.dll</PROPERTY>
<PROPERTY ID="DebuggerTransport" Protected="true" _UseCcRelativePath="true">transports/desktop/cmtnpt_tcpconnect.dll</PROPERTY>
<PROPERTY ID="LocalTransportFile" Protected="true" _UseCcRelativePath="true">target/wce400/%cpu%/devicedma.dll</PROPERTY>
</PROPERTYCONTAINER>
</xsl:element>
<xsl:element name="SERVICEINFO">
<xsl:attribute name="Name">
<xsl:value-of select="LANGUAGE/MICROSOFT_PLATFORMBUILDER_SERVICECATEGORY/SERVICEINFO_KITL_APP_TRANSPORT"/>
</xsl:attribute>
<xsl:attribute name="ID">BBA1A9C3-B49B-4E26-A972-8C6431E6C834</xsl:attribute>
<xsl:attribute name="Protected">true</xsl:attribute>
<PROPERTYCONTAINER>
<PROPERTY ID="Version" Name="Version">6.00</PROPERTY>
<PROPERTY ID="EarliestSupportedVersion" Name="EarliestSupportedVersion">6.00</PROPERTY>
<PROPERTY ID="ReplacementList" Name="ReplacementList">6C840B54-37B4-4D32-B829-1523B872DAD2,8C4874A2-BBC7-4757-ACAE-7FD73EAEBAB0</PROPERTY>
<PROPERTY ID="_AddonFile" Name="_AddonFile">Microsoft.PlatformBuilder.ServiceCategory.xsl</PROPERTY></PROPERTYCONTAINER>
</xsl:element>
<xsl:element name="SERVICEINFO">
<xsl:attribute name="Name">
<xsl:value-of select="LANGUAGE/MICROSOFT_PLATFORMBUILDER_SERVICECATEGORY/SERVICEINFO_KITL_APP_TRANSPORT"/>
</xsl:attribute>
<xsl:attribute name="ID">8C4874A2-BBC7-4757-ACAE-7FD73EAEBAB0</xsl:attribute>
<xsl:attribute name="Protected">true</xsl:attribute>
<PROPERTYCONTAINER>
<PROPERTY ID="Version" Name="Version">5.01</PROPERTY>
<PROPERTY ID="EarliestSupportedVersion" Name="EarliestSupportedVersion">5.01</PROPERTY>
<PROPERTY ID="ReplacementList" Name="ReplacementList">6C840B54-37B4-4D32-B829-1523B872DAD2</PROPERTY>
<PROPERTY ID="_AddonFile" Name="_AddonFile">Microsoft.PlatformBuilder.ServiceCategory.xsl</PROPERTY></PROPERTYCONTAINER>
</xsl:element>
<xsl:element name="SERVICEINFO">
<xsl:attribute name="Name">
<xsl:value-of select="LANGUAGE/MICROSOFT_PLATFORMBUILDER_SERVICECATEGORY/SERVICEINFO_KITL_APP_TRANSPORT"/>
</xsl:attribute>
<xsl:attribute name="ID">6C840B54-37B4-4D32-B829-1523B872DAD2</xsl:attribute>
<xsl:attribute name="Protected">true</xsl:attribute>
<PROPERTYCONTAINER>
<PROPERTY ID="Version" Name="Version">5.00</PROPERTY>
<PROPERTY ID="EarliestSupportedVersion" Name="EarliestSupportedVersion">5.00</PROPERTY>
<PROPERTY ID="ReplacementList" Name="ReplacementList"></PROPERTY>
<PROPERTY ID="_AddonFile" Name="_AddonFile">Microsoft.PlatformBuilder.ServiceCategory.xsl</PROPERTY></PROPERTYCONTAINER>
</xsl:element>
</SERVICEINFOCONTAINER>
<PROPERTYCONTAINER>
<PROPERTY ID="_AddonFile" Name="_AddonFile">Microsoft.ServiceCategories.8.0.xsl</PROPERTY></PROPERTYCONTAINER>
</SERVICECATEGORY>
<SERVICECATEGORY Name="Application Level Bootstrap Service" ID="D7C86969-EB5F-41e2-96CC-290683622203">
<SERVICEINFOCONTAINER>
<xsl:element name="SERVICEINFO">
<xsl:attribute name="Name">
<xsl:value-of select="LANGUAGE/MICROSOFT_SERVICECATEGORIES_8_0/STARTUP_STARTUPNAME_ACTIVESYNC"/>
</xsl:attribute>
<xsl:attribute name="ID">6CFC41FD-50BA-43d2-9ACD-6A2A874D2853</xsl:attribute>
<xsl:attribute name="Protected">true</xsl:attribute>
<PROPERTYCONTAINER>
<PROPERTY ID="default" Protected="true">yes</PROPERTY>
<PROPERTY ID="type" Protected="true">activesync</PROPERTY>
<PROPERTY ID="LocalAssemblyFile" Protected="true" _UseCcRelativePath="true">bin/ActiveSyncBootstrap.dll</PROPERTY>
</PROPERTYCONTAINER>
</xsl:element>
<xsl:element name="SERVICEINFO">
<xsl:attribute name="Name">
<xsl:value-of select="LANGUAGE/MICROSOFT_VISUALSTUDIO_SERVICECATEGORIES_8_0/STARTUP_STARTUPNAME_DEVICEEMULATION"/>
</xsl:attribute>
<xsl:attribute name="ID">ECDA0E20-34EF-41CD-9574-A51C52B45037</xsl:attribute>
<xsl:attribute name="Protected">true</xsl:attribute>
<PROPERTYCONTAINER>
<PROPERTY ID="default" Protected="true">yes</PROPERTY>
<PROPERTY ID="type" Protected="true">emulator</PROPERTY>
<PROPERTY ID="LocalAssemblyFile" Protected="true" _UseVSRelativePath="true">smartdevices/emulators/DeviceEmulatorBootstrap.dll</PROPERTY>
<PROPERTY ID="_AddonFile" Name="_AddonFile">Microsoft.VisualStudio.ServiceCategories.8.0.xsl</PROPERTY></PROPERTYCONTAINER>
</xsl:element>
<xsl:element name="SERVICEINFO">
<xsl:attribute name="Name">
<xsl:value-of select="LANGUAGE/MICROSOFT_PLATFORMBUILDER_SERVICECATEGORY/SERVICEINFO_KITL_APP_BOOTSTRAP"/>
</xsl:attribute>
<xsl:attribute name="ID">8ACB7D2B-45E8-497A-9C0B-8DE18D28EAA2</xsl:attribute>
<xsl:attribute name="Protected">true</xsl:attribute>
<PROPERTYCONTAINER>
<PROPERTY ID="Version" Name="Version">6.00</PROPERTY>
<PROPERTY ID="EarliestSupportedVersion" Name="EarliestSupportedVersion">6.00</PROPERTY>
<PROPERTY ID="ReplacementList" Name="ReplacementList">2624EBD5-D40B-4A2D-99BE-D70CA55A462C,B3760D8E-650A-4670-ACF8-A79175996F15</PROPERTY>
<PROPERTY ID="_AddonFile" Name="_AddonFile">Microsoft.PlatformBuilder.ServiceCategory.xsl</PROPERTY></PROPERTYCONTAINER>
</xsl:element>
<xsl:element name="SERVICEINFO">
<xsl:attribute name="Name">
<xsl:value-of select="LANGUAGE/MICROSOFT_PLATFORMBUILDER_SERVICECATEGORY/SERVICEINFO_KITL_APP_BOOTSTRAP"/>
</xsl:attribute>
<xsl:attribute name="ID">B3760D8E-650A-4670-ACF8-A79175996F15</xsl:attribute>
<xsl:attribute name="Protected">true</xsl:attribute>
<PROPERTYCONTAINER>
<PROPERTY ID="Version" Name="Version">5.01</PROPERTY>
<PROPERTY ID="EarliestSupportedVersion" Name="EarliestSupportedVersion">5.01</PROPERTY>
<PROPERTY ID="ReplacementList" Name="ReplacementList">2624EBD5-D40B-4A2D-99BE-D70CA55A462C</PROPERTY>
<PROPERTY ID="_AddonFile" Name="_AddonFile">Microsoft.PlatformBuilder.ServiceCategory.xsl</PROPERTY></PROPERTYCONTAINER>
</xsl:element>
<xsl:element name="SERVICEINFO">
<xsl:attribute name="Name">
<xsl:value-of select="LANGUAGE/MICROSOFT_PLATFORMBUILDER_SERVICECATEGORY/SERVICEINFO_KITL_APP_BOOTSTRAP"/>
</xsl:attribute>
<xsl:attribute name="ID">2624EBD5-D40B-4A2D-99BE-D70CA55A462C</xsl:attribute>
<xsl:attribute name="Protected">true</xsl:attribute>
<PROPERTYCONTAINER>
<PROPERTY ID="Version" Name="Version">5.00</PROPERTY>
<PROPERTY ID="EarliestSupportedVersion" Name="EarliestSupportedVersion">5.00</PROPERTY>
<PROPERTY ID="ReplacementList" Name="ReplacementList"></PROPERTY>
<PROPERTY ID="_AddonFile" Name="_AddonFile">Microsoft.PlatformBuilder.ServiceCategory.xsl</PROPERTY></PROPERTYCONTAINER>
</xsl:element>
</SERVICEINFOCONTAINER>
<PROPERTYCONTAINER>
<PROPERTY ID="_AddonFile" Name="_AddonFile">Microsoft.ServiceCategories.8.0.xsl</PROPERTY></PROPERTYCONTAINER>
</SERVICECATEGORY>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐