加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc-3 – 将视图添加到MVC3时出现异常

发布时间:2020-12-16 06:26:06 所属栏目:asp.Net 来源:网络整理
导读:我正在使用Visual Studio 2012 Express for Web. 当我尝试添加视图时,我收到一条错误消息: The templates had the following 1 error(s)C:Program FilesMicrosoft Visual Studio11.0Common7IDEVWExpressItemTemplatesCSharpWebMVC 3CodeTemplates
我正在使用Visual Studio 2012 Express for Web.

当我尝试添加视图时,我收到一条错误消息:

The templates had the following 1 error(s)

C:Program FilesMicrosoft Visual Studio
11.0Common7IDEVWExpressItemTemplatesCSharpWebMV
C 3CodeTemplatesAddViewCSHTMLEmpty.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并立即添加视图,这应该适合您.

您是否复制了项目的代码模板文件夹?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读