简体   繁体   English

与ASP.NET MVC网站一起部署ASP.NET网站

[英]Deploy ASP.NET website alongside ASP.NET MVC website

I am working on an upgrade for a company website. 我正在为公司网站进行升级。 It currently in production using vanilla ASP.NET. 目前正在使用香草ASP.NET进行生产。 For the upgrade I switched the framework to ASP.NET MVC. 为了进行升级,我将框架切换为ASP.NET MVC。

I am ready to deploy a beta version of the website. 我准备部署该网站的Beta版本。 I have tested it locally by creating another website in IIS and just copying the published files there; 我通过在IIS中创建另一个网站并仅将发布的文件复制到本地来对它进行了本地测试。 that works. 这样可行。 I only have access to the production web server through FTP. 我只能通过FTP访问生产Web服务器。 I tried copying those same files into a subdirectory on the root path, but it won't load the website. 我尝试将这些文件复制到根路径上的子目录中,但是不会加载该网站。

How would I go about deploying the ASP.NET MVC project alongside the existing vanilla ASP.NET so that I can get to the beta site with just www.mycompany.com/beta? 我将如何与现有的普通ASP.NET一起部署ASP.NET MVC项目,以便仅通过www.mycompany.com/beta即可进入Beta版站点?

I believe you would have to make the beta folder into a virtual directory so that it gets its own Application. 我相信您必须将beta文件夹放入一个虚拟目录中,以便它获得自己的应用程序。

This has to be done through the IIS manager, and can't be done through FTP. 这必须通过IIS管理器完成,而不能通过FTP完成。 In IIS 7.5 there is a menu option for converting a directory to an application ("Convert to Application") when right clicking on a directory. 在IIS 7.5中,有一个菜单选项,用于在右键单击目录时将目录转换为应用程序(“转换为应用程序”)。 That would work great in this case. 在这种情况下,那会很好。

I would suggest that you ask for a subdomain instead, eg beta.mycompany.com, that way it will have its own application to run in. 我建议您改为要求一个子域,例如beta.mycompany.com,这样它将有自己的应用程序可以运行。

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

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