错误创建在Visual Studio 2012前preSS的局部视图剃刀时 [英] Error when Creating a Partial View in Visual Studio 2012 Express with Razor

查看:214
本文介绍了错误创建在Visual Studio 2012前preSS的局部视图剃刀时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建在Microsoft Visual Studio 2012前preSS的景色,我希望它是一个强类型的局部视图,但我收到以下错误:

I am creating a view in Microsoft Visual Studio 2012 Express and I want it to be a strongly-typed partial view, but I am getting the following error:

C:\\ Program Files文件(x86)的\\微软的Visual Studio 11.0 \\ Common7 \\ IDE \\ VWDEx preSS \\项目模板\\ CSHARP \\网络\\ MVC 4 \\ codeTemplates \\ AddView \\ CSHTML \\ Empty.tt( 1,1):错误:无法取得一个AppDomain运行从主机转型的问题。这个过程无法继续。

C:\Program Files(x86)\Microsoft Visual Studio 11.0\Common7\IDE\VWDExpress\Item Templates\CSharp\Web\MVC 4\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.

我还没有创建视图不在局部视图,强类型或没有任何麻烦。请让我知道,如果有我可以提供任何其他有用的信息。

I have not had any trouble creating views that are not partial views, strongly-typed or not. Please let me know if there is any other helpful information I can provide.

推荐答案

很简单...
只需重新启动Visual Studio。

Is simple... Just restart Visual Studio.

<一个href=\"http://blog.jongallant.com/2012/07/appdomain-process-cannot-continue.html#.UQwtQs6mg1I\">http://blog.jongallant.com/2012/07/appdomain-process-cannot-continue.html#.UQwtQs6mg1I

这篇关于错误创建在Visual Studio 2012前preSS的局部视图剃刀时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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