Error when creating a Partial View in Visual Studio 2012 Express with Razor

Becca picture Becca · Feb 1, 2013 · Viewed 11.9k times · Source

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)\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.

Answer