c# - asp.net mvc4 project compiles ok but gives the yellow screen of death -


looks i'm not 1 issue

  1. visual studio 2010 not catching compile errors on build
  2. http://social.msdn.microsoft.com/forums/en-us/vseditor/thread/423387c5-1649-4517-996a-fb6405ea7af0/

getting weird error here

i created brand new mvc4 .net 4.5 project in vs2012 added nuget packages, added classes couple of test projects changed namespaces, compile, run project , voila ysod message saying method... not available on class ....

i have tried following no avail

  • clean project, rebuild , run debug again
  • restart vs2012
  • reboot machine
  • apply windows update
  • run vs2012 project in question

it appears while there's no compiler error, there's no intellisense atleast on ef model types !

hopefully there's rational explanation !

update - specific error is

compiler error message: cs0117: 'mysite.myusertype' not contain definition 'getfor'

where getfor() static method on type myusertype, in partial class, both partial files in same project, both have same namespace mysite etc. etc.

update 2 - added class project, left default class1 typed random text in class1 such

klsjdflksj flksj flksj flksjdf lksjdf lskfjd

hit , gives no compilation error run-time ysod instead

what gives ?

update 3 - tried "fix" link #2 above still getting ysod

by default mvc views doesn't compiles project compilation, 90% have bug in view page. try add views compilation , error on build.

in .csproj file: <mvcbuildviews>true</mvcbuildviews> 

http://www.stefanprodan.eu/2011/05/compile-views-in-asp-net-mvc-3-with-visual-studio/


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 -