添加视图MVC3时异常 [英] Exception when adding a View to MVC3

查看:189
本文介绍了添加视图MVC3时异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2012中前preSS的Web。

I'm using Visual Studio 2012 Express for Web.

当我尝试添加一个观点,我得到一个错误说:

When I try to add a view, I get an error saying:

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堵了(其实这只是一个应用程序来证明它的工作),所以它可能是一些做的启动文件之一。

I've been plugging in Ninject (this is actually just an app to prove it's working) so it could be something to do with one of the start-up files.

从哪里开始寻找,试图解决这个问题?

Where do I start looking to try to fix this?

感谢

戴夫

推荐答案

请尝试重新启动的Visual Studio 2012,现在添加一个观点,并认为应该为你做的。

Try restarting the Visual Studio 2012 and add a view now, and that should do for you.

你有没有复制的 code模板文件夹你的项目?

Have you copied the Code Templates folder your project ?

这篇关于添加视图MVC3时异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆