无法使用通用身份验证连接到设备"192.168.1.17" [英] Failed to connect to device '192.168.1.17' using Universal Authentication

查看:770
本文介绍了无法使用通用身份验证连接到设备"192.168.1.17"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将WPA应用程序从Visual Studio 2015部署到Windows IoT核心版10. 尝试部署时,出现错误:

I try to deploy WPA application to Windows IoT core 10 from Visual Studio 2015.
When I try to deploy, I get error:

无法使用通用身份验证连接到设备"192.168.1.17". 请验证是否在中指定了正确的远程身份验证模式 项目调试设置. 0x89740016:来自HRESULT的异常: 0x89740016

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

如果我将身份验证模式"更改为无",则会收到错误消息:

If I change Auth Mode to none, I get error:

无法连接到名为"minwinpc"的Microsoft Visual Studio远程调试器. Visual Studio 2015远程调试器(MSVSMON.EXE)似乎没有在远程计算机上运行.这可能是因为防火墙阻止了与远程计算机的通信.请参阅帮助以获取有关配置远程调试的帮助.

Unable to connect to the Microsoft Visual Studio Remote Debugger named 'minwinpc'. 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. Please see Help for assistance on configuring remote debugging.

这是配置页:

如果我尝试从Windows Device Portal部署CurrencyExchange_1.0.9.0_ARM_Debug.appx,则会收到错误消息:

If I try to deploy CurrencyExchange_1.0.9.0_ARM_Debug.appx from Windows Device Portal I get error:

失败原因:Windows无法安装软件包 e0c3666e-088b-4aed-8c79-8f7ddb1541fa_1.0.9.0_arm__ya2k1rc7yvhh6 因为此程序包依赖于找不到的框架. 提供由发布的框架"Microsoft.NET.CoreRuntime.1.0" "CN = Microsoft Corporation,O = Microsoft Corporation,L = Redmond, S =华盛顿,C =美国",具有中性或ARM处理器架构,并且 最低版本1.0.23819.0,以及要安装的此软件包.这 当前名称为"Microsoft.NET.CoreRuntime.1.0"的框架 已安装以下内容:{}失败文字:软件包更新失败,依赖关系或 冲突验证. (0x80073cf3)

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中启用调试,则会收到错误消息:

If I try to enable debugging in Device Portal, I get error:

无法启动Visual Studio远程调试器.远程调试器 需要复制到设备.这可以通过部署一个 使用Visual Studio将应用程序添加到设备上.

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,则会收到错误消息:

If I run command devenv /resetuserdata from VS I get error:

命令"devenv"无效.

Command "devenv" is not valid.

这是VS的屏幕截图:

我手动删除了CurrencyExchange.csproj.user并进行了操作:

I removed CurrencyExchange.csproj.user manually and made:

  • 清洁
  • 重建
  • 部署
  • 在发布和调试之间更改配置
  • 在ARM,任何CPU和x64之间更改平台
  • 其他手鼓跳舞

这是防火墙的配置:

没有帮助.
重新刷新Raspberry Pi 3的Windows IoT后,问题开始了.
在部署之前.

Nothing helps.
Problems started after I reflashed Windows IoT for Raspberry Pi 3.
Before it was deploying.

我读过论坛,但无济于事...有什么问题吗?

I read forums but nothing helps... What can be a problem?

更新

当我创建应用程序包:存储->创建应用程序包时,有时成功,并且得到CurrencyExchange_1.0.X.0_x86_x64_arm_Debug.appxbundle,但有时却出现错误:

When I create App Package: Store -> Create App Package, some times it succeeds, and I get CurrencyExchange_1.0.X.0_x86_x64_arm_Debug.appxbundle, but some times I get error:

捆绑中的所有应用程序包清单必须声明相同的值 在XPath下 [local-name()='Package']/ [local-name()='Dependencies'].在清单文件中声明的XPath下带有文件的软件包的值 名称"CurrencyExchange_1.0.20.0_ARM_Debug.appx"和程序包全名 第11行第4列的"robodem_1.0.20.0_arm__ya2k1rc7yvhh6"不匹配 在清单中声明的​​那些带有文件名的软件包 "CurrencyExchange_1.0.20.0_x86_Debug.appx"和程序包全名 第11行第4列中的"robodem_1.0.20.0_x86__ya2k1rc7yvhh6"

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

更新

现在,在bundle之后,设备已更新失败原因:Windows无法 安装包 e0c3666e-088b-4aed-8c79-8f7ddb1541fa_1.0.9.0_arm__ya2k1rc7yvhh6 因为此程序包依赖于找不到的框架. 提供由发布的框架"Microsoft.NET.CoreRuntime.1.0" "CN = Microsoft Corporation,O = Microsoft Corporation,L = Redmond, S =华盛顿,C =美国",具有中性或ARM处理器架构,并且 最低版本1.0.23819.0,以及要安装的此软件包.这 当前名称为"Microsoft.NET.CoreRuntime.1.0"的框架 已安装以下内容:{}失败文字:软件包更新失败,依赖关系或 冲突验证. (0x80073cf3)

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)

远程部署仍然失败.
在VS中删除/克隆重新初始化项目后,我重新组装了包.

Remote deploy still failing.
I reassembled bundle after remove/clone reinit project in VS.

更新

我的PC IP地址是192.168.1.46,发出:

My PC IP address is 192.168.1.46, issuing:

Set-Item WSMan:\localhost\Client\TrustedHosts -Value 192.168.1.46

没有帮助.

更新

如果我尝试从远程Power Shell运行调试器,则会得到:

If I try to run debugger from remote Power Shell, I get:

[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

更新

我尝试了

I tried this answer, and this didn't helps.

更新

正如Rita Han所建议的,我上传了两个依赖项,并且应用程序已成功部署.我可以在设备上运行它.但是,我什么都没有在8116端口上运行:

As Rita Han suggested I uploaded two dependencies, and application successfully deployed. I can run it on the device. How ever, I have nothing runs over 8116 port:

更新

如果通过开始调试器"选项启动调试器,则会出现错误:

If I start the debugger via Start Debugger option, I get error:

无法启动Visual Studio远程调试器.远程调试器 需要复制到设备.这可以通过部署一个 使用Visual Studio将应用程序添加到设备上.

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部署应用程序时,我仍然遇到相同的错误:

And I still have same error when deploying application via VS:

Visual Studio 2015远程调试器(MSVSMON.EXE)未出现 在远程计算机上运行.这可能是因为防火墙 正在阻止与远程计算机的通信.

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端口侦听过程时仍然没有重播:

As Rita Han suggested in further conversation, I enabled 8116 in both firewall of the raspberry and firewall of the PC, I get Ok. terminal answer, but I still have no replay when search 8116 port listening process:

  • 来自PC的远程登录
  • 树莓派3上的
  • 电源外壳net stat
  • Windows设备门户中的运行过程
  • telnet from PC
  • Power Shell net stat on Raspberry Pi 3
  • Running Processes in Windows Device Portal

更新

正如我之前写的:我在Raspberry Pi 3上打开端口,重新启动设备,这是截图验证,没有监听8116的内容:

As I wrote before: I opened port on Raspberry Pi 3, restarted device, and here is screenshot proofing, that there is nothing listening for 8116:

更新

要手动启动过程也无济于事

To start process manually also don't helps

更新

按照Rita的要求,我共享.csproj和.csproj.user文件.

As Rita asks, I share .csproj and .csproj.user files.

.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)' &lt; '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:

.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>

此外,我有个好消息.我发现了手册 "rel =" nofollow noreferrer>论坛. 我在Raspberry上运行调试器,并且在Visual Studio中出现新错误.

In addition, I have good news. I found kind manual in this forum. I run debugger on Raspberry, and have new error in visual studio.

我看到调试器正在运行:

I see that debugger running:

但是我在netstat的端口中看不到它:

However I don't see it among ports in netstat:

这是来自VS的新错误:

And this is new error from VS:

1> ------部署已开始:项目:CurrencyExchange,配置: 调试ARM ------
1> DEP0110:无法检查远程计算机 开发人员模式为"192.168.1.17".请验证远程工具 正确安装在远程计算机上,并且正确 在项目调试设置中指定了远程身份验证模式.
===========部署:0成功,1失败,0跳过==========

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进程:

I found msvsmon process in netstat using [192.168.1.17]: PS C:\Data\Users\administrator\Documents> netstat -b -a:

然后我在VS的Debug config中调整了端口:

And I adjusted the port in Debug config in VS:

但是,我有同样的错误.

However, I had same error.

推荐答案

如果我尝试从以下位置部署CurrencyExchange_1.0.9.0_ARM_Debug.appx Windows设备门户我收到错误:失败原因:Windows无法 安装软件包xxx,因为此软件包依赖于以下框架: 找不到.提供框架 "Microsoft.NET.CoreRuntime.1.0" ...

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设备)在以下路径中:

Make sure you install the dependencies along with the .appxbundle. These dependencies files, for example(ARM device), in this path:

AppPackages \ App21_1.0.0.0_Debug_Test \ Dependencies \ ARM

AppPackages\App21_1.0.0.0_Debug_Test\Dependencies\ARM

您可以通过设备门户网站安装这些denpendecies(.appx)->在选择应用程序包(.appxbundle)之后,让我选择可选软件包

You can install these denpendecies(.appx) via device portal->Allow me to select optional packages after Select the application package(.appxbundle)

您可以参考此详细步骤答案.

更新:

无法使用通用设备连接到设备"192.168.1.17" 验证.请验证正确的远程身份验证模式 在项目调试设置中指定.

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核心版(版本17763)时,我可以在Visual Studio 2015 Update 3中重现此问题.

I can reproduce this issue with Visual Studio 2015 Update 3 when deploying a UWP application to Windows IoT Core (version 17763).

有一个类似的问题通过安装与设备上运行的Windows IoT核心版相关的新Windows SDK来解决.

There is a similar issue that solved by install new Windows SDK related to the version of Windows IoT Core running on the device.

这似乎是一个错误,反映了Windows之间的不匹配 安装在Visual Studio计算机上的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核心版(例如17763)上进行远程调试.您需要升级到VS2017.

But I can't install newer version than 14393 of Windows SDK for Visual Studio 2015. So it seems VS2015 can't remote debug on new Windows IoT Core version like 17763. You need upgrade to VS2017.

这篇关于无法使用通用身份验证连接到设备"192.168.1.17"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆