2016-10-02 55 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.就個人而言,我更喜歡送我的數據到雲中,並從那裏服務網絡......