为什么我的Azure虚拟机显示在Visual Studio的发布功能,为ASP.NET MVC应用程序? [英] Why doesn't my Azure virtual machine show up in Visual Studio's Publish feature, for an ASP.NET MVC app?

查看:179
本文介绍了为什么我的Azure虚拟机显示在Visual Studio的发布功能,为ASP.NET MVC应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想发表我的ASP.NET MVC4 Web应用程序,使用Visual Studio 2013,到我了,并在Azure上运行的虚拟机。虚拟机已安装IIS就可以了。

I'm trying to publish my ASP.NET MVC4 web application, using Visual Studio 2013, to a virtual machine that I have up and running in Azure. The virtual machine has IIS installed on it.

我不使用Azure网站功能,因为它不支持虚拟网络,然而,因而不能被配置为连接到SQL Server数据库,在一个Azure的VM上运行,使用私有LAN IP。所以,这个问题发表不属于简单的发布到Azure的网站功能。

I'm not using the Azure Web Sites feature because it does not support virtual networks, yet, and thus cannot be configured to connect to a SQL Server database, running on an Azure VM, using a private LAN IP. So, this publish question does not pertain to the simpler publish-to-azure-websites feature.

有关Visual Studio的发布功能的GUI先用提示开始选择我的目标发布目标。在此提示,我选择发布到Windows Azure的虚拟机。它带来了一个具有中,我希望能够选择我现有的虚拟机下拉菜单的提示。有一个装载微调图标这让我觉得它连接到Azure中来查询可用的虚拟机。我的VM是从来没有选择,能虽然 - 下拉列表是空的。这表明我使用预期的用户名我签名。

The GUI for Visual Studio's publish feature first starts with a prompt to select my target publish destination. On this prompt, I choose to publish to a Windows Azure Virtual Machine. It's brings up a prompt that has a drop-down menu in which I expected to be able to select my existing virtual machine. There's a loading spinner icon which makes me think it's connecting to Azure to query for the available VMs. My VM is never select-able though - the drop-down list is empty. It shows that I'm signed in using the expected username.

什么我需要做的,使我的虚拟机,在天青,出现在该下拉列表中,这样我可以轻松地发布到他们?

What do I have to do to make my VMs, within Azure, appear in this drop-down list so that I can easily publish to them?

我已经安装了Web部署的完整安装,我创建了TCP端口端点8172。

I've installed a complete installation of Web Deploy and I created an endpoint for TCP port 8172.

推荐答案

简单的答案是使用IIS组件安装程序安装WebDeploy。一旦安装WebDeploy,并为它的端口防火墙上打开,Visual Studio将能够发布到该计算机。 Visual Studio的发布对话框可能是空的几秒钟,但我认为这是下载机或东西的细节,因为它最终将出现在发布到下拉。

The simple answer was to use the IIS component installer application to install WebDeploy. Once WebDeploy is installed, and the ports for it are opened on the firewall, Visual Studio will be able to publish to that machine. Visual Studio's publish dialog may be empty for a few seconds, but I think it's downloading the details of the machine or something, because it will eventually appear in the publish-to drop-down.

这篇关于为什么我的Azure虚拟机显示在Visual Studio的发布功能,为ASP.NET MVC应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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