Problem using Add View dialog in ASP.NET MVC RC1 for strongly typed view

后端 未结 2 1122
[愿得一人]
[愿得一人] 2021-01-13 19:41

I like the new Add View dialog that was released with RC1. If you specify a view data class, it generates a scaffolded view for you. It seems to work fine with classes def

2条回答
  •  庸人自扰
    2021-01-13 20:16

    you actually forgot to add the Web.Config file on the View Folder. See this small article : http://www.graytechnology.com/Blog/post/ASPNET-MVC-strongly-typed-view-error-Could-not-load-type.aspx

    It got me scratching my head quite a bit as well in my current project! :)

提交回复
热议问题