Running MVC Web app targeting .net 4.6.1 in a virtual directory under a ASP.NET core web app. Is it possible? [duplicate]

霸气de小男生 提交于 2020-01-15 10:43:12

问题


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.

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?

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.


回答1:


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

ASP.NET 4.5 throws 502.5 as a virtual application in Azure Web App under a ASP.NET Core 2.0 application




回答2:


You can crate the Virtual Application in the Azure web apps by adding the path to the Folder in the Virtual Directories and Application section under App Settings.



来源:https://stackoverflow.com/questions/41182794/running-mvc-web-app-targeting-net-4-6-1-in-a-virtual-directory-under-a-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!