问题
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