c# - The templates had the following errors when running -


when try add typed view in asp.net mvc 3, following error:

the templates had following 4 errors when running

i restarted visual studio, rebuild project, tried again add view , got following: the templates had following 2 errors when running

my model:

public class simplemodel {     public int id { get; set; }     public string name { get; set; }     public bool isactive { get; set; } } 

my controller:

public class testcontroller : controller {     public actionresult test()     {         return view(new simplemodel());     } } 

the problem environment-wide (i created new project , tried add view, same result) , not solved restarting visual studio or development machine.
edit: reinstalling asp.net , web tools 2012.2 solved problem.

using process monitor, i've found, @ least on machine, visual studio loads system.componentmodel.dataannotations.dll gac:

12:43:12.6470833 pm devenv.exe 772 load image c:\windows\microsoft.net\assembly\gac_msil\system.componentmodel.dataannotations\v4.0_4.0.0.0__31bf3856ad364e35\system.componentmodel.dataannotations.dll success image base: 0x5f7b0000, image size: 0x1e000

what did i've started process monitor, add filter capture events devenv.exe, tried scaffold view mvc 3 application, searched in captured events system.componentmodel.dataannotations.dll


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -