错误创建在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.

http://blog.jongallant.com/2012/07/appdomain-process-cannot-continue.html#.UQwtQs6mg1I