使用通用身份验证无法连接到设备“192.168.1.17”
Failed to connect to device '192.168.1.17' using Universal Authentication
我尝试在 Visual Studio 2015 年将 WPA 应用程序部署到 Windows IoT Core 10。
当我尝试部署时,出现错误:
Failed to connect to device '192.168.1.17' using Universal Authentication.
Please verify the correct remote authentication mode is specified in
the project debug settings. 0x89740016: Exception from HRESULT:
0x89740016
如果我将授权模式更改为 none,我会收到错误消息:
无法连接到名为 'minwinpc' 的 Microsoft Visual Studio 远程调试器。 Visual Studio 2015 Remote Debugger (MSVSMON.EXE) 似乎没有在远程计算机上 运行ning。这可能是因为防火墙阻止了与远程计算机的通信。请参阅帮助以获取有关配置远程调试的帮助。
这是配置页面:
如果我尝试从 Windows Device Portal
部署 CurrencyExchange_1.0.9.0_ARM_Debug.appx
,我会收到错误消息:
Failure reason: Windows cannot install package
e0c3666e-088b-4aed-8c79-8f7ddb1541fa_1.0.9.0_arm__ya2k1rc7yvhh6
because this package depends on a framework that could not be found.
Provide the framework "Microsoft.NET.CoreRuntime.1.0" published by
"CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond,
S=Washington, C=US", with neutral or ARM processor architecture and
minimum version 1.0.23819.0, along with this package to install. The
frameworks with name "Microsoft.NET.CoreRuntime.1.0" currently
installed are: {} Failure text: Package failed updates, dependency or
conflict validation. (0x80073cf3)
这是来自 Device Portal
的屏幕截图:
如果我尝试在 Device Portal
中启用调试,我会收到错误消息:
Failed to start the Visual Studio Remote Debugger. The Remote Debugger
needs to be copied to the device. This can be done by deploying an
application to the device using Visual Studio.
如果我从 VS 运行 命令 devenv /resetuserdata
我得到错误:
Command "devenv" is not valid.
这是VS的截图:
我手动删除了 CurrencyExchange.csproj.user
并做了:
- 清洁
- 重建
- 部署
- 在 Releas 和 Debug 之间更改配置
- 在 ARM、Any CPU 和 x64
之间切换平台
- 其他手鼓舞
这是防火墙配置:
没有任何帮助。
在我为 Raspberry Pi 刷新 Windows IoT 后问题开始了 3.
在部署之前。
我阅读了论坛,但没有任何帮助...可能是什么问题?
更新
当我创建应用程序包时:商店 -> 创建应用程序包,有时成功,我得到 CurrencyExchange_1.0.X.0_x86_x64_arm_Debug.appxbundle
,但有时我得到错误:
All app package manifests in a bundle must declare the same values
under the XPath
[local-name()='Package']/[local-name()='Dependencies']. The values under this XPath declared in the manifest for the package with file
name "CurrencyExchange_1.0.20.0_ARM_Debug.appx" and package full name
"robodem_1.0.20.0_arm__ya2k1rc7yvhh6" at line 11, column 4 don't match
those declared in the manifest for the package with file name
"CurrencyExchange_1.0.20.0_x86_Debug.appx" and package full name
"robodem_1.0.20.0_x86__ya2k1rc7yvhh6" at line 11, column 4
更新
Device is updated, now, after bundleFailure reason: Windows cannot
install package
e0c3666e-088b-4aed-8c79-8f7ddb1541fa_1.0.9.0_arm__ya2k1rc7yvhh6
because this package depends on a framework that could not be found.
Provide the framework "Microsoft.NET.CoreRuntime.1.0" published by
"CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond,
S=Washington, C=US", with neutral or ARM processor architecture and
minimum version 1.0.23819.0, along with this package to install. The
frameworks with name "Microsoft.NET.CoreRuntime.1.0" currently
installed are: {} Failure text: Package failed updates, dependency or
conflict validation. (0x80073cf3)
远程部署仍然失败。
remove/clone 在 VS 中重新初始化项目后,我重新组装了包。
更新
我的电脑IP地址是192.168.1.46
,发出:
Set-Item WSMan:\localhost\Client\TrustedHosts -Value 192.168.1.46
没有帮助。
更新
如果我尝试从远程 Power Shell 运行 调试器,我得到:
[192.168.1.17]: PS C:\Data\Users\administrator\Documents> MSVSMON.EXE
The term 'MSVSMON.EXE' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (MSVSMON.EXE:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
更新
我试过 this answer,但没有用。
更新
按照 Rita Han 的建议,我上传了两个依赖项,应用程序成功部署。我可以 运行 在设备上。然而,我在 8116 端口上没有任何 运行s:
更新
如果我通过启动调试器选项启动调试器,我得到错误:
Failed to start the Visual Studio Remote Debugger. The Remote Debugger
needs to be copied to the device. This can be done by deploying an
application to the device using Visual Studio.
而且我在通过 VS 部署应用程序时仍然出现同样的错误:
The Visual Studio 2015 Remote Debugger (MSVSMON.EXE) does not appear
to be running on the remote computer. This may be because a firewall
is preventing communication to the remote computer.
更新
正如Rita Han在进一步的谈话中建议的那样,我在树莓派的防火墙和PC的防火墙中都启用了8116,我得到了Ok.
终端答案,但是我在搜索8116端口监听过程时仍然没有重播:
- 从 PC 远程登录
- 电源 Shell
net stat
在 Raspberry Pi 3
- 运行 Windows 设备门户中的进程
更新
正如我之前写的:我在Raspberry Pi 3上打开端口,重新启动设备,这里是截图校对,没有监听8116:
更新
手动启动进程也无济于事
更新
按照 Rita 的要求,我共享 .csproj 和 .csproj.user 文件。
.csproj:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProjectGuid>{AB466423-7430-49A4-AF63-2F6C031394BC}</ProjectGuid>
<OutputType>AppContainerExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CurrencyExchange</RootNamespace>
<AssemblyName>CurrencyExchange</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PackageCertificateKeyFile>CurrencyExchange_TemporaryKey.pfx</PackageCertificateKeyFile>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<AppxBundle>Always</AppxBundle>
<AppxBundlePlatforms>x86|x64|arm</AppxBundlePlatforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>false</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
<None Include="project.json" />
</ItemGroup>
<ItemGroup>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="Calibrator\Box.cs" />
<Compile Include="Calibrator\TestStorage.cs" />
<Compile Include="Common\Delegates.cs" />
<Compile Include="Constants\Consts.cs" />
<Compile Include="Constants\Messages.cs" />
<Compile Include="Constants\Exceptions.cs" />
<Compile Include="Enums\Severity.cs" />
<Compile Include="Enums\Status.cs" />
<Compile Include="Controls\wHeader.xaml.cs">
<DependentUpon>wHeader.xaml</DependentUpon>
</Compile>
<Compile Include="Exceptions\InvalidNodeType.cs" />
<Compile Include="Exceptions\UnhandledControlStatus.cs" />
<Compile Include="Exceptions\UnhandledMessageSeverity.cs" />
<Compile Include="Settings\wIncasation.xaml.cs">
<DependentUpon>wIncasation.xaml</DependentUpon>
</Compile>
<Compile Include="Settings\wNominals.xaml.cs">
<DependentUpon>wNominals.xaml</DependentUpon>
</Compile>
<Compile Include="Settings\wUpload.xaml.cs">
<DependentUpon>wUpload.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\wMoneyAdjust.xaml.cs">
<DependentUpon>wMoneyAdjust.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\wManual.xaml.cs">
<DependentUpon>wManual.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\wMainPage.xaml.cs">
<DependentUpon>wMainPage.xaml</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Pages\wSettings.xaml.cs">
<DependentUpon>wSettings.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\wStatistics.xaml.cs">
<DependentUpon>wStatistics.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<None Include="CurrencyExchange_TemporaryKey.pfx" />
</ItemGroup>
<ItemGroup>
<Content Include="Properties\Default.rd.xml" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="Controls\wHeader.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Settings\wIncasation.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Settings\wNominals.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Settings\wUpload.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Controls\wMoneyAdjust.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\wManual.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\wMainPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Pages\wSettings.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\wStatistics.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\..\RoboLine\IoT\IoT.csproj">
<Project>{2f12492d-4625-4edf-8497-d9e49f320bef}</Project>
<Name>IoT</Name>
</ProjectReference>
<ProjectReference Include="..\Lib\CurrencyExchange.Lib\CurrencyExchange.Lib.csproj">
<Project>{5299129a-cee9-4530-8789-e2dcd7d24430}</Project>
<Name>CurrencyExchange.Lib</Name>
</ProjectReference>
<ProjectReference Include="..\Lib\TouchPanels\TouchPanels.csproj">
<Project>{8220b292-cf54-43af-8873-5ad16715fc8a}</Project>
<Name>TouchPanels</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<SDKReference Include="WindowsIoT, Version=10.0.14393.0">
<Name>Windows IoT Extensions for the UWP</Name>
</SDKReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;CODE_ANALYSIS</DefineConstants>
<NoWarn>;2008</NoWarn>
<NoStdLib>true</NoStdLib>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP;CODE_ANALYSIS</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<NoStdLib>true</NoStdLib>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
.csproj.user:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AppxPackageIsForStore>False</AppxPackageIsForStore>
<AppxShowAllApps>False</AppxShowAllApps>
<AppxBuildConfigurationSelection>x86|x64|arm</AppxBuildConfigurationSelection>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DeviceId>30F105C9-681E-420b-A277-7C086EAD8A4E</DeviceId>
<UseEmulator>false</UseEmulator>
<RemoteDebugMachine>192.168.1.17</RemoteDebugMachine>
<AuthenticationMode>None</AuthenticationMode>
<RemoteDebugEnabled>true</RemoteDebugEnabled>
<DeploymentType>CopyToDevice</DeploymentType>
<RemoveNonLayoutFiles>true</RemoveNonLayoutFiles>
<CreateCleanLayout>true</CreateCleanLayout>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
<DebugEngines>
</DebugEngines>
<BackgroundTaskDebugEngines>
</BackgroundTaskDebugEngines>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<DeviceId>30F105C9-681E-420b-A277-7C086EAD8A4E</DeviceId>
<UseEmulator>false</UseEmulator>
<RemoteDebugEnabled>true</RemoteDebugEnabled>
<AuthenticationMode>Universal</AuthenticationMode>
<RemoteDebugMachine>192.168.1.17</RemoteDebugMachine>
</PropertyGroup>
</Project>
另外,我有个好消息。我找到了亲切的 manual in this forum。
我在 Raspberry 上 运行 调试器,并在 visual studio.
中出现新错误
我看到调试器 运行ning:
但是我在 netstat
:
的端口中没有看到它
这是 VS 的新错误:
1>------ Deploy started: Project: CurrencyExchange, Configuration:
Debug ARM ------
1>DEP0110 : Unable to check remote machine
'192.168.1.17' for developer mode. Please verify that the remote tools
are installed correctly on the remote machine, and that the correct
remote authentication mode is specified in the project debug settings.
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
更新
我使用 [192.168.1.17]: PS C:\Data\Users\administrator\Documents> netstat -b -a
:
在 netstat 中找到了 msvsmon 进程
并且我在VS的Debug config中调整了端口:
但是,我也有同样的错误。
If I try to deploy CurrencyExchange_1.0.9.0_ARM_Debug.appx from
Windows Device Portal I get error: Failure reason: Windows cannot
install package xxx because this package depends on a framework that
could not be found. Provide the framework
"Microsoft.NET.CoreRuntime.1.0"...
确保将依赖项与 .appxbundle 一起安装。这些依赖文件,例如(ARM设备),在这个路径:
AppPackages\App21_1.0.0.0_Debug_Test\Dependencies\ARM
您可以通过设备门户安装这些 denpendecies(.appx)->允许我在 Select 应用程序包 (.appxbundle)
之后 select 可选包
详细步骤可参考this answer。
更新:
Failed to connect to device '192.168.1.17' using Universal
Authentication. Please verify the correct remote authentication mode
is specified in the project debug settings.
在将 UWP 应用程序部署到 Windows IoT Core(版本 17763)时,我可以使用 Visual Studio 2015 Update 3 重现此问题。
有一个 可以通过在设备上安装与 Windows IoT Core 运行 版本相关的新 Windows SDK 来解决。
This seems to be an error reflecting a mismatch between the Windows
SDK installed on the Visual Studio machine and the OS version on the
IoT device.
但我无法为 Visual Studio 2015 安装比 Windows SDK 14393 更新的版本。所以 VS2015 似乎无法在新的 Windows IoT Core 版本上进行远程调试,例如17763. 你需要升级到 VS2017.
我尝试在 Visual Studio 2015 年将 WPA 应用程序部署到 Windows IoT Core 10。
当我尝试部署时,出现错误:
Failed to connect to device '192.168.1.17' using Universal Authentication. Please verify the correct remote authentication mode is specified in the project debug settings. 0x89740016: Exception from HRESULT: 0x89740016
如果我将授权模式更改为 none,我会收到错误消息:
无法连接到名为 'minwinpc' 的 Microsoft Visual Studio 远程调试器。 Visual Studio 2015 Remote Debugger (MSVSMON.EXE) 似乎没有在远程计算机上 运行ning。这可能是因为防火墙阻止了与远程计算机的通信。请参阅帮助以获取有关配置远程调试的帮助。
这是配置页面:
如果我尝试从 Windows Device Portal
部署 CurrencyExchange_1.0.9.0_ARM_Debug.appx
,我会收到错误消息:
Failure reason: Windows cannot install package e0c3666e-088b-4aed-8c79-8f7ddb1541fa_1.0.9.0_arm__ya2k1rc7yvhh6 because this package depends on a framework that could not be found. Provide the framework "Microsoft.NET.CoreRuntime.1.0" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or ARM processor architecture and minimum version 1.0.23819.0, along with this package to install. The frameworks with name "Microsoft.NET.CoreRuntime.1.0" currently installed are: {} Failure text: Package failed updates, dependency or conflict validation. (0x80073cf3)
这是来自 Device Portal
的屏幕截图:
如果我尝试在 Device Portal
中启用调试,我会收到错误消息:
Failed to start the Visual Studio Remote Debugger. The Remote Debugger needs to be copied to the device. This can be done by deploying an application to the device using Visual Studio.
如果我从 VS 运行 命令 devenv /resetuserdata
我得到错误:
Command "devenv" is not valid.
这是VS的截图:
我手动删除了 CurrencyExchange.csproj.user
并做了:
- 清洁
- 重建
- 部署
- 在 Releas 和 Debug 之间更改配置
- 在 ARM、Any CPU 和 x64 之间切换平台
- 其他手鼓舞
这是防火墙配置:
没有任何帮助。
在我为 Raspberry Pi 刷新 Windows IoT 后问题开始了 3.
在部署之前。
我阅读了论坛,但没有任何帮助...可能是什么问题?
更新
当我创建应用程序包时:商店 -> 创建应用程序包,有时成功,我得到 CurrencyExchange_1.0.X.0_x86_x64_arm_Debug.appxbundle
,但有时我得到错误:
All app package manifests in a bundle must declare the same values under the XPath [local-name()='Package']/[local-name()='Dependencies']. The values under this XPath declared in the manifest for the package with file name "CurrencyExchange_1.0.20.0_ARM_Debug.appx" and package full name "robodem_1.0.20.0_arm__ya2k1rc7yvhh6" at line 11, column 4 don't match those declared in the manifest for the package with file name "CurrencyExchange_1.0.20.0_x86_Debug.appx" and package full name "robodem_1.0.20.0_x86__ya2k1rc7yvhh6" at line 11, column 4
更新
Device is updated, now, after bundleFailure reason: Windows cannot install package e0c3666e-088b-4aed-8c79-8f7ddb1541fa_1.0.9.0_arm__ya2k1rc7yvhh6 because this package depends on a framework that could not be found. Provide the framework "Microsoft.NET.CoreRuntime.1.0" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or ARM processor architecture and minimum version 1.0.23819.0, along with this package to install. The frameworks with name "Microsoft.NET.CoreRuntime.1.0" currently installed are: {} Failure text: Package failed updates, dependency or conflict validation. (0x80073cf3)
远程部署仍然失败。
remove/clone 在 VS 中重新初始化项目后,我重新组装了包。
更新
我的电脑IP地址是192.168.1.46
,发出:
Set-Item WSMan:\localhost\Client\TrustedHosts -Value 192.168.1.46
没有帮助。
更新
如果我尝试从远程 Power Shell 运行 调试器,我得到:
[192.168.1.17]: PS C:\Data\Users\administrator\Documents> MSVSMON.EXE
The term 'MSVSMON.EXE' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (MSVSMON.EXE:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
更新
我试过 this answer,但没有用。
更新
按照 Rita Han 的建议,我上传了两个依赖项,应用程序成功部署。我可以 运行 在设备上。然而,我在 8116 端口上没有任何 运行s:
更新
如果我通过启动调试器选项启动调试器,我得到错误:
Failed to start the Visual Studio Remote Debugger. The Remote Debugger needs to be copied to the device. This can be done by deploying an application to the device using Visual Studio.
而且我在通过 VS 部署应用程序时仍然出现同样的错误:
The Visual Studio 2015 Remote Debugger (MSVSMON.EXE) does not appear to be running on the remote computer. This may be because a firewall is preventing communication to the remote computer.
更新
正如Rita Han在进一步的谈话中建议的那样,我在树莓派的防火墙和PC的防火墙中都启用了8116,我得到了Ok.
终端答案,但是我在搜索8116端口监听过程时仍然没有重播:
- 从 PC 远程登录
- 电源 Shell
net stat
在 Raspberry Pi 3 - 运行 Windows 设备门户中的进程
更新
正如我之前写的:我在Raspberry Pi 3上打开端口,重新启动设备,这里是截图校对,没有监听8116:
更新
手动启动进程也无济于事
更新
按照 Rita 的要求,我共享 .csproj 和 .csproj.user 文件。
.csproj:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProjectGuid>{AB466423-7430-49A4-AF63-2F6C031394BC}</ProjectGuid>
<OutputType>AppContainerExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CurrencyExchange</RootNamespace>
<AssemblyName>CurrencyExchange</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PackageCertificateKeyFile>CurrencyExchange_TemporaryKey.pfx</PackageCertificateKeyFile>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<AppxBundle>Always</AppxBundle>
<AppxBundlePlatforms>x86|x64|arm</AppxBundlePlatforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>false</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
<None Include="project.json" />
</ItemGroup>
<ItemGroup>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="Calibrator\Box.cs" />
<Compile Include="Calibrator\TestStorage.cs" />
<Compile Include="Common\Delegates.cs" />
<Compile Include="Constants\Consts.cs" />
<Compile Include="Constants\Messages.cs" />
<Compile Include="Constants\Exceptions.cs" />
<Compile Include="Enums\Severity.cs" />
<Compile Include="Enums\Status.cs" />
<Compile Include="Controls\wHeader.xaml.cs">
<DependentUpon>wHeader.xaml</DependentUpon>
</Compile>
<Compile Include="Exceptions\InvalidNodeType.cs" />
<Compile Include="Exceptions\UnhandledControlStatus.cs" />
<Compile Include="Exceptions\UnhandledMessageSeverity.cs" />
<Compile Include="Settings\wIncasation.xaml.cs">
<DependentUpon>wIncasation.xaml</DependentUpon>
</Compile>
<Compile Include="Settings\wNominals.xaml.cs">
<DependentUpon>wNominals.xaml</DependentUpon>
</Compile>
<Compile Include="Settings\wUpload.xaml.cs">
<DependentUpon>wUpload.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\wMoneyAdjust.xaml.cs">
<DependentUpon>wMoneyAdjust.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\wManual.xaml.cs">
<DependentUpon>wManual.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\wMainPage.xaml.cs">
<DependentUpon>wMainPage.xaml</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Pages\wSettings.xaml.cs">
<DependentUpon>wSettings.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\wStatistics.xaml.cs">
<DependentUpon>wStatistics.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<None Include="CurrencyExchange_TemporaryKey.pfx" />
</ItemGroup>
<ItemGroup>
<Content Include="Properties\Default.rd.xml" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="Controls\wHeader.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Settings\wIncasation.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Settings\wNominals.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Settings\wUpload.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Controls\wMoneyAdjust.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\wManual.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\wMainPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Pages\wSettings.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\wStatistics.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\..\RoboLine\IoT\IoT.csproj">
<Project>{2f12492d-4625-4edf-8497-d9e49f320bef}</Project>
<Name>IoT</Name>
</ProjectReference>
<ProjectReference Include="..\Lib\CurrencyExchange.Lib\CurrencyExchange.Lib.csproj">
<Project>{5299129a-cee9-4530-8789-e2dcd7d24430}</Project>
<Name>CurrencyExchange.Lib</Name>
</ProjectReference>
<ProjectReference Include="..\Lib\TouchPanels\TouchPanels.csproj">
<Project>{8220b292-cf54-43af-8873-5ad16715fc8a}</Project>
<Name>TouchPanels</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<SDKReference Include="WindowsIoT, Version=10.0.14393.0">
<Name>Windows IoT Extensions for the UWP</Name>
</SDKReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;CODE_ANALYSIS</DefineConstants>
<NoWarn>;2008</NoWarn>
<NoStdLib>true</NoStdLib>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP;CODE_ANALYSIS</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<NoStdLib>true</NoStdLib>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
.csproj.user:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AppxPackageIsForStore>False</AppxPackageIsForStore>
<AppxShowAllApps>False</AppxShowAllApps>
<AppxBuildConfigurationSelection>x86|x64|arm</AppxBuildConfigurationSelection>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DeviceId>30F105C9-681E-420b-A277-7C086EAD8A4E</DeviceId>
<UseEmulator>false</UseEmulator>
<RemoteDebugMachine>192.168.1.17</RemoteDebugMachine>
<AuthenticationMode>None</AuthenticationMode>
<RemoteDebugEnabled>true</RemoteDebugEnabled>
<DeploymentType>CopyToDevice</DeploymentType>
<RemoveNonLayoutFiles>true</RemoveNonLayoutFiles>
<CreateCleanLayout>true</CreateCleanLayout>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
<DebugEngines>
</DebugEngines>
<BackgroundTaskDebugEngines>
</BackgroundTaskDebugEngines>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<DeviceId>30F105C9-681E-420b-A277-7C086EAD8A4E</DeviceId>
<UseEmulator>false</UseEmulator>
<RemoteDebugEnabled>true</RemoteDebugEnabled>
<AuthenticationMode>Universal</AuthenticationMode>
<RemoteDebugMachine>192.168.1.17</RemoteDebugMachine>
</PropertyGroup>
</Project>
另外,我有个好消息。我找到了亲切的 manual in this forum。 我在 Raspberry 上 运行 调试器,并在 visual studio.
中出现新错误我看到调试器 运行ning:
但是我在 netstat
:
这是 VS 的新错误:
1>------ Deploy started: Project: CurrencyExchange, Configuration: Debug ARM ------
1>DEP0110 : Unable to check remote machine '192.168.1.17' for developer mode. Please verify that the remote tools are installed correctly on the remote machine, and that the correct remote authentication mode is specified in the project debug settings.
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
更新
我使用 [192.168.1.17]: PS C:\Data\Users\administrator\Documents> netstat -b -a
:
并且我在VS的Debug config中调整了端口:
但是,我也有同样的错误。
If I try to deploy CurrencyExchange_1.0.9.0_ARM_Debug.appx from Windows Device Portal I get error: Failure reason: Windows cannot install package xxx because this package depends on a framework that could not be found. Provide the framework "Microsoft.NET.CoreRuntime.1.0"...
确保将依赖项与 .appxbundle 一起安装。这些依赖文件,例如(ARM设备),在这个路径:
AppPackages\App21_1.0.0.0_Debug_Test\Dependencies\ARM
您可以通过设备门户安装这些 denpendecies(.appx)->允许我在 Select 应用程序包 (.appxbundle)
之后 select 可选包详细步骤可参考this answer。
更新:
Failed to connect to device '192.168.1.17' using Universal Authentication. Please verify the correct remote authentication mode is specified in the project debug settings.
在将 UWP 应用程序部署到 Windows IoT Core(版本 17763)时,我可以使用 Visual Studio 2015 Update 3 重现此问题。
有一个
This seems to be an error reflecting a mismatch between the Windows SDK installed on the Visual Studio machine and the OS version on the IoT device.
但我无法为 Visual Studio 2015 安装比 Windows SDK 14393 更新的版本。所以 VS2015 似乎无法在新的 Windows IoT Core 版本上进行远程调试,例如17763. 你需要升级到 VS2017.