I have a WPF application which uses LINQ-to-SQL to access an .MDF file within its local directory structure. This works fine.
However, when I create a second .MDF file in the same directory as the first, and try to create a model with Entity Framework, it gives me this error:
Request for the permission of type 'System.Web.AspNetHostingPermission'
What kind of extra settings to I have to make so that the Entity Framework classes can access a local .MDF file as does the LINQ-to-SQL classes?