Visual Studio 2012 Add controller with Context fails when connectionstring configSource in place

512 Views Asked by At

Working with VS 2012 + MVC4 + EF5 trying to add controller with Context fails when connectionstring configSource in place with Error :

"Unable to retrieve metadata for MvcTestApp.Models.DummyClass. Unable to open configSource file 'connections.config'.

BTW: The path is correct the application actually runs correctly.

Does Visual Studio 2012 EF5 support connectionStrings configSource to be in a separated file at design time ? or no way during development !!!

Thanks for your feedback.

1

There are 1 best solutions below

2
George On

I have the same problem. I solved it putting a copy of 'connections.config' in

C:\Users\[CurrentUser]\AppData\Local\Temp.

Hope this help you.