简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM