-1

我有运行 Windows IOT 的 rpi 2,我想在其上运行 python 脚本。不幸的是,我在部署后遇到了这个错误

我使用visual studio 2015作为windows iot核心后台应用程序编写了脚本。

它给我的错误是

Severity   Code   Description   Project   File   Line   Suppression State
Error
DEP3400 : Visual Studio could not enable network loopback and
cannot determine the state of network isolation exemption. 
 Calls to local network services might be blocked, and local network

 debugging tools might not work. The service returned the following error: 
(0x00000005) Exception of type 
'Microsoft.VisualStudio.ImmersiveProjectServices.Shared.FirewallShimException'
 was thrown.

输出是

'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32
\backgroundTaskHost.exe'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32
\KernelBase.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32 \msvcrt.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\kernel32legacy.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
 The thread 0xf1c has exited with code 0 (0x0).
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\procthreadexthost.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\MrmCoreR.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\actxprxy.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\biwinrt.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppxLayouts\HELLOFMLVS.Release_ARM.aaaa\pyuwpbackgroundservice.dll'.
 Cannot find or open the PDB file.

'backgroundTaskHost.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00_14.0.24123.0_arm__8wekyb3d8bbwe\vcruntime140_app.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00_14.0.24123.0_arm__8wekyb3d8bbwe\msvcp140_app.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppxLayouts\HELLOFMLVS.Release_ARM.aaaa\Python35.dll'. Cannot find or open the PDB file.
'backgroundTaskHost.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00_14.0.24123.0_arm__8wekyb3d8bbwe\vccorlib140_app.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\Windows.ApplicationModel.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\advapi32legacy.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Unloaded 'C:\Windows\System32\shlwapi.dll'
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. Symbols loaded.
Mon Jun 27 23:00:59 2016: Starting Py_Initialize
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\CryptoWinRT.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Storage.ApplicationData.dll'. Symbols loaded.
Mon Jun 27 23:01:06 2016: Finished Py_Initialize
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\MinUser.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Web.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'. Symbols loaded.
Python debugger is present
Python arguments: Python.exe visualstudio_py_remote_launcher.py 8116 34a2c836-d62f-4c7a-9a3d-4aa7db7e74ff StartupTask.py
Mon Jun 27 23:01:08 2016: Starting Py_Main...
'backgroundTaskHost.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppxLayouts\HELLOFMLVS.Release_ARM.aaaa\PythonHome\DLLs\_socket.pyd'. Cannot find or open the PDB file.
'backgroundTaskHost.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppxLayouts\HELLOFMLVS.Release_ARM.aaaa\PythonHome\DLLs\select.pyd'. Cannot find or open the PDB file.
'backgroundTaskHost.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppxLayouts\HELLOFMLVS.Release_ARM.aaaa\PythonHome\DLLs\_ssl.pyd'. Cannot find or open the PDB file.
'backgroundTaskHost.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppxLayouts\HELLOFMLVS.Release_ARM.aaaa\PythonHome\DLLs\_ctypes.pyd'. Cannot find or open the PDB file.
2016-06-27 23:01:24.180903: Remote launcher starting ptvsd attach wait with File: StartupTask.py, Port: 8116, Id: 34a2c836-d62f-4c7a-9a3d-4aa7db7e74ff

'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppxLayouts\HELLOFMLVS.Release_ARM.aaaa\PythonHome\DLLs\_ptvsdhelper.pyd'. Cannot find or open the PDB file.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\wshbth.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'. Symbols loaded.
'backgroundTaskHost.exe' (Win32): Loaded 'C:\Windows\System32\nlaapi.dll'. Symbols loaded.
The program '[3828] backgroundTaskHost.exe' has exited with code 0 (0x0).
The program '[3828] python @ tcp://169.254.21.250:8116/?sd=C

%3a%5cUsers%5caaaa%5cdocuments%5cvisual+studio+2015%5cProjects%5cHELLOFML%5cHELLOFML&td=C%3a

%5cData%5cUsers%5cDefaultAccount%5cAppxLayouts%5cHELLOFMLVS.Release_ARM.aaaa&host=uwp' has exited with code -1 (0xffffffff).
4

1 回答 1

0

我认为这个问题首先应该在Raspberry Pi StackExchange 论坛上提出。

从你们俩似乎都有的错误消息来看,您的网络接口(例如环回地址)无法使用 Visual Studio 编写的代码进行访问。对于基于 Linux 内核的系统,您通常需要借助Windowssudo的同义词来运行您的代码:以管理员身份运行尝试以管理员身份运行您的代码,也许它应该可以解决。如果您的 Windows IoT 核心上有任何防火墙设置,您可能还需要超限设置

于 2016-07-11T10:16:42.733 回答