2016-10-02 57 views
3

我创建在Visual Studio 2015年的ASP.net核心的Web应用程序,并以为我会看到活动的工作正在进行中。如何在Windows 10物联网设备上部署Asp.net Core?

的行动是采取我的树莓派3的地方,在运行Windows 10物联网,accessable上192.168.1.200:8080(通过我的浏览器)。

然而,当我试图通过Visual Studio部署到它,我得到一个错误:

enter image description here

Could not connect to the remote computer ("192.168.1.200"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Mangement Service") is started.

所以我检查,如果Web Management Service正在运行:

enter image description here

是的。

然后我试图添加端口:

enter image description here

Could not complete the request to remote agent URL 'https://*:8080/msdeploy.axd?site=MySite'. The underlying connection was closed: An unexpected error occurred on a send.

那么,它会尝试连接到一个https连接,这意味着证书... 我需要吗? 如果我这样做,我想OpenSSL会是什么,我需要......

你有什么可能是错有什么建议?

+0

Web部署是不是出了什么包含在Windows 10物联网版的一部分。 Windows 10物联网用于运行通用应用程序,而不是任意可执行文件,并且不包含供您使用的网络服务器。您可能有更好的运气部署到您的设备上运行的一些基于Linux的操作系统。 – mason

+1

另外,做一个网络搜索。我发现一些教程只是Google搜索而已。您必须通过PowerShell获取适当的ARM包,并将该站点作为自托管应用运行,而不是将其放入IIS中。 – mason

回答

0

这不是真正的iot核心目前的主要焦点,但它是可能的(see here)通常情况下,您从VisualStudio 2015部署一个UWP应用程序或创建它作为UWP包从Visual Studio 2015和部署包裹。这个应用程序可以使用任何天蓝色的服务和本地显示(如果有的话),但不需要Web服务器。 Here are plenty of samples, in particular one that installs a node.js web-server to serve http pages to clients if you need that.就个人而言,我更喜欢送我的数据到云中,并从那里服务网络......