在现有 MVC5 Azure WebApp 中添加其他项目(博客引擎)

Adding Other Projects(Blog Engine) inside an existing MVC5 Azure WebApp

我正在尝试将 BlogEngine.NET(web) 添加到我现有的 MVC5 项目(运行 作为一个 Azure 网站),部分基于这些 instructions。我有 downloaded/extracted 整个 Web 项目文件夹,并将其作为文件夹包含在我现有的 MVC 项目中。

我的控制器有以下代码

public ActionResult Blog()
{
   var path = Server.MapPath("~/BlogEngine/default");
    return View(path);
}

但是,我收到错误消息:

....BlogEngine\default' or its master was not found or no view engine supports the searched locations.

通过阅读this,我明白了为什么会出现这个错误。我只想要一些关于如何将博客引擎添加到我现有项目的指示。

编辑:

this 正是我想要实现的目标,但 azure 无济于事(我选择使用 azure 网站而不是 AzureVM 的全部意义在于回避保持该 VM 正常运行和运行的责任运行),所以看看手头的其他选项,比如调整我的 MVC。

  • 转到manage.windowsazure.com
  • select 网络应用程序
  • 导航到配置选项卡
  • 向下滚动到虚拟应用程序和目录
  • 在此处添加目录路径和 Select 应用程序复选框。
  • 点击保存。