您如何将ASP.net MVC应用程序从Visual Studio 2013发布到本地网络? [英] How do you publish an ASP.net MVC application from Visual Studio 2013 to your local network?

查看:134
本文介绍了您如何将ASP.net MVC应用程序从Visual Studio 2013发布到本地网络?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2013中制作了一个简单的ASP.net MVC Web应用程序,我想对其进行部署,以便可以从本地网络上其他计算机上的浏览器访问它.我尝试右键单击我的项目>发布(不确定要使用的设置,Web Deploy,Web部署程序包,文件系统, 我将网站发布到了inetpub/wwwroot文件夹.

I made a simple ASP.net MVC web application in Visual Studio 2013, and I want to deploy it so it can be accessed from the browser on other computers on my local network. I have tried right-clicking my project > Publish (not sure what settings to use, Web Deploy, Web deploy package, File system, I published the website to my inetpub/wwwroot folder.

我设法使IIS运行起来,我试图在管理器中添加一个应用程序并编辑对所有人的权限.我尝试导航到localhost/application_name,但是却收到有关未配置为列出目录的错误.我启用了目录浏览,但这仅意味着它现在显示文件列表.当我在浏览器中导航到应用程序时,如何获得它以实际运行该应用程序? 我要关闭吗?

I managed to get IIS up an running, I've tried adding an application in the manager and editing the permissions to Everyone. I tried navigating to localhost/application_name but I was getting errors about not being configured to list the directory. I enabled directory browsing, but that just means it now shows a list of the files. How do I get it to actually run the app when I navigate to it in the browser? Am I close?

当前正在尝试 http ://johan.driessen.se/posts/Accessing-an-IIS-Express-site-from-a-remote-computer (尽管我认为这比我现在要领先一两步) 还尝试了以下方法: http://www.programmerfish.com/how-to-deploy-asp-net-web-application-on-the-network-in-windows-7/#.VGTLCvnF81L 没有运气到目前为止

currently trying this http://johan.driessen.se/posts/Accessing-an-IIS-Express-site-from-a-remote-computer (although this I think is a step or two ahead of where I am) Also tried this: http://www.programmerfish.com/how-to-deploy-asp-net-web-application-on-the-network-in-windows-7/#.VGTLCvnF81L no luck so far

推荐答案

问题是ASP.net未向IIS注册

The issue was that ASP.net was not registered with IIS

  1. 以管理员身份打开命令提示符
  2. 已导航到C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319
  3. aspnet_regiis -iru

现在,Web应用程序可在IIS

Now web app runs in IIS http://www.asp.net/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-%28remote-agent%29

这篇关于您如何将ASP.net MVC应用程序从Visual Studio 2013发布到本地网络?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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