2016-04-21 42 views
2

我想将BlogEngine.NET(web)添加到我现有的部分基于这些instructions的MVC5项目(它运行为天蓝色的网站)。我已经下载/提取整个Web项目文件夹,并将其作为文件夹包含到我现有的MVC项目中。在现有的MVC5 Azure WebApp内添加其他项目(博客引擎)

我的控制器有下面的代码

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

不过,我收到错误:通过阅读this,我明白了为什么这个错误发生

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

。我只想指出如何将Blog引擎添加到现有项目中。

编辑:

this正是我想达到的目标,但Azure是没有帮助(我整点选择,而不是使用AzureVMs蔚蓝的网站是从保持该负责回避虚拟机启动和运行),所以看着手头的其他选项,如调整我的MVC。

回答

0
  • 转到manage.windowsazure.com
  • 选择web应用
  • 导航到Configuration选项卡
  • 向下滚动到虚拟应用程序和目录
  • 添加目录的路径存在并选择应用程序复选框。
  • 点击保存。

enter image description here