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并立即添加视图,这应该适合您.
您是否复制了项目的代码模板文件夹? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- 如何使用WebAPI没有ASP.NET MVC?
- asp.net-mvc-3 – Azure网站上的RavenDb – 访问
- asp.net-mvc – 一种在ASP.NET MVC中排除操作过滤
- asp.net – 在启用了共享配置的IIS 7上安装Web D
- asp.net – AngularJs 2与ASP.NET 4.5.1
- asp.net – 为什么压缩ScriptResource.axd,即使禁
- asp.net – 如何在捕获httpwebrequest超时后关闭
- 使用log4net和ASP.NET跟踪会话变量
- ASP.NET对txt文件相关操作(读取、写入、保存)
- asp.net – 在Visual Studio 2015中保存* .cs或*
热点阅读