Falha ao conectar-se ao dispositivo '192.168.1.17' usando a Autenticação Universal
Tento implantar o aplicativo WPA no Windows IoT core 10 do Visual Studio 2015.
Quando tento implantar, recebo o erro:
Falha ao conectar-se ao dispositivo '192.168.1.17' usando a Autenticação Universal. Verifique se o modo de autenticação remota correto está especificado nas configurações de depuração do projeto. 0x89740016: Exceção de HRESULT: 0x89740016
Se eu alterar o modo de autenticação para nenhum, recebo o erro:
Não foi possível conectar-se ao Depurador Remoto do Microsoft Visual Studio chamado 'minwinpc'. O depurador remoto do Visual Studio 2015 (MSVSMON.EXE) não parece estar em execução no computador remoto. Isso pode ocorrer porque um firewall está impedindo a comunicação com o computador remoto. Consulte a Ajuda para obter ajuda sobre como configurar a depuração remot
Esta é a página de configuração:
Se eu tentar implantarCurrencyExchange_1.0.9.0_ARM_Debug.appx
a partir deWindows Device Portal
Recebo erro:
Motivo do defeito: O Windows não pode instalar o pacote e0c3666e-088b-4aed-8c79-8f7ddb1541fa_1.0.9.0_arm__ya2k1rc7yvhh6 porque este pacote depende de uma estrutura que não foi encontrada. Forneça a estrutura "Microsoft.NET.CoreRuntime.1.0" publicada por "CN = Microsoft Corporation, O = Microsoft Corporation, L = Redmond, S = Washington, C = US", com arquitetura de processador neutro ou ARM e versão mínima 1.0.23819.0 , juntamente com este pacote para instalar. As estruturas com o nome "Microsoft.NET.CoreRuntime.1.0" atualmente instalado são: {} Texto da falha: atualizações com falha no pacote, validação de dependência ou conflito. (0x80073cf3)
Esta é uma captura de tela deDevice Portal
:
Se eu tentar ativar a depuração emDevice Portal
, Recebo erro:
Falha ao iniciar o Visual Studio Remote Debugger. O depurador remoto precisa ser copiado para o dispositivo. Isso pode ser feito implantando um aplicativo no dispositivo usando o Visual Studio.
Se eu executar o comandodevenv /resetuserdata
do VS, recebo erro:
comando "devenv" não é válid
Esta é a captura de tela do VS:
RemoviCurrencyExchange.csproj.user
manualmente e feito:
Esta é a configuração do firewall:
Nada ajuda
s problemas foram iniciados depois que eu atualizei o Windows IoT para Raspberry Pi
Antes de implantar.
Li fóruns, mas nada ajuda ... O que pode ser um problema?
ATUALIZA
Quando crio o Pacote de Aplicativos: Loja -> Criar Pacote de Aplicativos, algumas vezes é bem-sucedido e receboCurrencyExchange_1.0.X.0_x86_x64_arm_Debug.appxbundle
, mas algumas vezes recebo erro:
odos os manifestos do pacote de aplicativos em um pacote configurável devem declarar os mesmos valores sob o XPath [nome-local () = 'Pacote'] / [nome-local () = 'Dependências']. Os valores neste XPath declarados no manifesto para o pacote com o nome de arquivo "CurrencyExchange_1.0.20.0_ARM_Debug.appx" e o nome completo do pacote "robodem_1.0.20.0_arm__ya2k1rc7yvhh6" na linha 11, coluna 4 não correspondem aos declarados no manifesto para o pacote com o nome de arquivo "CurrencyExchange_1.0.20.0_x86_Debug.appx" e o nome completo do pacote "robodem_1.0.20.0_x86__ya2k1rc7yvhh6" na linha 11, coluna 4
ATUALIZA
@Device é atualizado agora, após o bundleFailure: O Windows não pode instalar o pacote e0c3666e-088b-4aed-8c79-8f7ddb1541fa_1.0.9.0_arm__ya2k1rc7yvhh6 porque este pacote depende de uma estrutura que não pôde ser encontrada. Forneça a estrutura "Microsoft.NET.CoreRuntime.1.0" publicada por "CN = Microsoft Corporation, O = Microsoft Corporation, L = Redmond, S = Washington, C = US", com arquitetura de processador neutro ou ARM e versão mínima 1.0.23819.0 , juntamente com este pacote para instalar. As estruturas com o nome "Microsoft.NET.CoreRuntime.1.0" atualmente instalado são: {} Texto da falha: atualizações com falha no pacote, validação de dependência ou conflito. (0x80073cf3)
implantação remota ainda está falhand
Remontei o pacote configurável após remover / clonar o projeto de reinicialização no VS.
ATUALIZA
O endereço IP do meu PC é192.168.1.46
, emitindo:
Set-Item WSMan:\localhost\Client\TrustedHosts -Value 192.168.1.46
Não ajuda.
ATUALIZA
Se eu tentar executar o depurador a partir do Power Shell remoto, recebo:
[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
ATUALIZA
Eu tenteiesta resposta, e isso não ajuda.
ATUALIZA
omo Rita Han sugeriu, eu enviei duas dependências e o aplicativo foi implantado com sucesso. Eu posso executá-lo no dispositivo. No entanto, nada tenho sobre a porta 8116:
ATUALIZA
Se eu iniciar o depurador via opção Iniciar Depurador, recebo o erro:
Falha ao iniciar o Visual Studio Remote Debugger. O depurador remoto precisa ser copiado para o dispositivo. Isso pode ser feito implantando um aplicativo no dispositivo usando o Visual Studio.
E ainda tenho o mesmo erro ao implantar aplicativos via VS:
O depurador remoto do Visual Studio 2015 (MSVSMON.EXE) não parece estar em execução no computador remoto. Isso pode ocorrer porque um firewall está impedindo a comunicação com o computador remot
ATUALIZA
omo Rita Han sugeriu em outras conversas, ativei o 8116 no firewall da framboesa e no firewall do PC, receboOk.
resposta do terminal, mas ainda não tenho repetição ao pesquisar o processo de escuta da porta 8116:
net stat
no Raspberry Pi 3xecutando processos no Windows Device PortATUALIZA
Como escrevi antes: eu abri a porta no Raspberry Pi 3, reiniciei o dispositivo e aqui está a prova de captura de tela, de que não há nada para ouvir 8116:
ATUALIZA
Para iniciar o processo manualmente também não ajuda
ATUALIZA
omo Rita pede, eu compartilho arquivos .csproj e .csproj.use
.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>
Além disso, tenho boas notícias. Eu achei tipomanua nissofóru. Executo o depurador no Raspberry e tenho um novo erro no visual studi
Eu vejo o depurador executando:
No entanto, não o vejo entre as portas emnetstat
:
E este é um novo erro do VS:
1> ------ Implementação iniciada: Projeto: CurrencyExchange, Configuração: Debug ARM ------
1> DEP0110: Não foi possível verificar a máquina remota '192.168.1.17' para o modo de desenvolvedor. Verifique se as ferramentas remotas estão instaladas corretamente na máquina remota e se o modo de autenticação remota correto está especificado nas configurações de depuração do projet
========== Implementar: 0 com êxito, 1 com falha, 0 ignorado ==========
ATUALIZA
Encontrei o processo msvsmon no netstat usando[192.168.1.17]: PS C:\Data\Users\administrator\Documents> netstat -b -a
:
E eu ajustei a porta na configuração de depuração no VS:
o entanto, tive o mesmo err