I created a simple class library, dropped in an Entity Data Model and dragged in a bunch of tables from my database.
In the same solution, I created a Dynamic Data Entities Web Application. Within that project, I added a reference to the project my EDM is in.
I imported the namespace in the Global.asax.cs file, and registered my dataContext (using the type of my Entity model), and told it to scaffold all the tables contained therein.
it compiles, but when I try to run it throws a TargetInvocationException error on the line I tried to register my dataContext, but doesn't give me any additional information.