asp.net mvc 3 - How to locate MVC3 Razor (.VBHTML) View? -
looks i'm missing here , can't figure out is. i'm creating mvc3 vb.net application using vs2010 vb web project templates. have removed (.aspx) views , created .vbhtml razor view - named index.vbhtml under home folder. homecontoller has action index. when run app below error.
the view 'index' or master not found. following locations searched: ~/views/home/index.aspx
~/views/home/index.ascx ~/views/shared/index.aspx ~/views/shared/index.ascx ~/views/home/index.cshtml ~/views/shared/index.cshtml
obviously view engine can't locate .vbhtml view. can please tell me how enable this? same setup works .cshtml files.
did register razor viewengine?
protected void application_start() { // ... viewengines.engines.add(new razorviewengine(("vb"))); }
Comments
Post a Comment