I’m building an app using Windows Azure Table. I’ve encapsulated all my calls to the Table Service into its own assembly. This assembly uses the .NET 4.0 Framework and includes a reference to System.Data.Service.Client (4.0). I’m able to use this assembly from a test project with no issue.
When I add this project as a reference to an MVC2 web application — again targeting the .NET 4.0 framework — I get the above error. I added the same DLL (v.4.0) to the web project but the problem persists.
What is going on? Why should I need to use a 3.5 DLL from the MVC project?
I added the following to my web.config file and all is copacetic.