简体   繁体   English

是否将ASP.NET MVC部署到Windows Server 2003?

[英]Deploying ASP.NET MVC to windows server 2003?

Short Version 简洁版本

I am a beginner program and my experience with launching programs is essentially hitting f5 in visual studio. 我是一个初学者程序,而我在启动程序方面的经验本质上是在Visual Studio中达到了f5。 How do I deploy an ASP.NET MVC app on a windows 2k3 server? 如何在Windows 2k3服务器上部署ASP.NET MVC应用程序? When deployed, how would I access/run the site? 部署后,我将如何访问/运行该网站?

Long Version: 长版:

I am attempting to launch a simple ASP.NET MVC application to my company's win 2k3 server. 我试图向我公司的Win 2k3服务器启动一个简单的ASP.NET MVC应用程序。 I have included the binaries (for the MVC architecture, System.Web.Mvc, etc.) in my project as I am unsure if sp1 for ASP.NET 3.5 is installed. 我已经在我的项目中包含了二进制文件(用于MVC体系结构,System.Web.Mvc等),因为我不确定是否已安装ASP.NET 3.5的sp1。

I have absolutely no experience with server deployment, outside of deploying a simple ASP classic site on my localhost, so far I've been coding with the development server. 除了在本地主机上部署一个简单的ASP经典站点之外,我完全没有服务器部署方面的经验,到目前为止,我一直在使用开发服务器进行编码。

What is the process? 过程是什么? When I click publish from Visual Studio, I select disk path and place it on my desktop, and then I transfer that folder to the server directory I want. 当我单击从Visual Studio中发布时,我选择磁盘路径并将其放置在桌面上,然后将该文件夹传输到所需的服务器目录。 The directory currently works with classic ASP pages, so I am placing my mvc app in a folder in that directory. 该目录当前可用于经典ASP页面,因此我将mvc应用程序放置在该目录中的文件夹中。

How do I access my site? 如何访问我的网站? I've tried \\server\\directory\\MyMVCAppFolder\\Home and several variations. 我试过\\ server \\ directory \\ MyMVCAppFolder \\ Home和几个变体。 (I changed my routing in Global.asax to account for .aspx extension, which is a nessecary evil dealing with win 2k3's IIS6) (我更改了Global.asax中的路由,以解决.aspx扩展名,这是处理win 2k3的IIS6的必经之路)

In summation, how do I deploy a ASP.NET MVC site just having access to the server directory I wish to publish it, and how do I access it as an end user? 总之,如何部署一个ASP.NET MVC站点,使其仅可以访问要发布的服务器目录,以及如何以最终用户身份访问它?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM