Receive this error no matter what I try. The type is whatever table/entity I try to navigate to. I am using MS SQL Server 2008 on local machine. I initially thought it was due to code first and DbContext. The RegisterRoutes wouldn't work with DbContext so
I got this solved from the forums. I then could not navigate from Default page to any of the tables listed, so I tried using test table from AdventureWorks and still nothing. I next tried using EF 4.0 structure with ObjectContext and it works. I'm lost. I
have read forum after forum and tried many things. What am I missing or doing wrong? How do I reach the underlying tables/entities from default links?
Seemed to have solved my own problem. Works if I set up as Web Application instead of Web Site. Have only tried one test site so far.
Try wrapping your Product entity with the website namespace.. You will have to import the namespace in your dbcontext class but it will work..