在ASP.NET核心Web应用程序下的虚拟目录中运行面向.net 4.6.1的MVC Web应用程序.是否有可能? [英] Running MVC Web app targeting .net 4.6.1 in a virtual directory under a ASP.NET core web app. Is it possible?

查看:74
本文介绍了在ASP.NET核心Web应用程序下的虚拟目录中运行面向.net 4.6.1的MVC Web应用程序.是否有可能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将个人网站从ASP.NET转换为ASP.NET Core Web应用程序(.net框架).我已经将此文件上传到了azure应用服务,并且效果很好.

I've converted my personal website from ASP.NET to ASP.NET Core Web app (.net framework). I've uploaded this to azure app services and works fine.

我现在想在名为Blog的虚拟应用程序中运行我的博客(这是一个针对.net 4.6.1的ASP.NET MVC Web应用程序.)

I would now like to run my blog (which is a ASP.NET MVC web app targeting .net 4.6.1) in a virtual application called Blog.

这有可能吗?如果需要,我需要采取什么步骤?

Is this possible and if so what steps do I need to take?

更多信息.我尝试在VS中使用Web部署将博客应用程序部署到虚拟目录. 但是,尽管它说成功了,但博客根目录不在wwwroot下..我的错误博客存在于/site/wwwroot中.但是,访问sitename.com \ blog时出现HTTP错误502.5-进程失败.

More info. I've tried using web deploy in VS to deploy the blog app to the virtual directory. However, though it says successful the blog folder is not present under wwwroot.. My mistake the blog is present in /site/wwwroot. However, I get a HTTP Error 502.5 - Process Failure when accessing the sitename.com\blog.

推荐答案

以下问题的公认答案解决了我遇到的问题.

The accepted answer in the question below fixes the issue that I had.

查看全文

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