【发布时间】:2013-02-01 00:19:46
【问题描述】:
我正在使用 Visual Studio 2012 Express for Web。
当我尝试添加视图时,我收到一条错误消息:
The templates had the following 1 error(s)
C:\Program Files\Microsoft Visual Studio
11.0\Common7\IDE\VWExpress\ItemTemplates\CSharp\Web\MV
C 3\CodeTemplates\AddView\CSHTML\Empty.tt(-1,-1): error :
There was a problem getting an AppDomain to run the
transformation from the host. The process cannot continue.
我一直在插入 Ninject(这实际上只是一个应用程序来证明它正在工作)所以它可能与其中一个启动文件有关。
我从哪里开始尝试解决这个问题?
谢谢
戴夫
【问题讨论】:
-
尝试重启
Visual Studio 2012,并在你的项目中添加一个视图 -
@Karthik,成功了。如果您想将其添加为答案,我会将其标记为这样。知道为什么会这样吗?
标签: asp.net-mvc-3 visual-studio-2012 ninject