Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2015 Update model from database - unexpected exception

I have a solution with a lot of project. Few of them are using EDMX. It looks like I did something that crashed my EDMX files. When I open EDMX and click option "Update Model from Database" I get a exception popup windows with message: "An unexpected exception has occurred. The exception message is: 'Exception has been thrown by the target of invocation.'."

http://1drv.ms/20C9Vv0

And interesting is it doesn't matter which project. Any EDMX in the solution give me this bug. I have VS 2015 with latest EF 6.1.3.

Please help me :)

like image 340
RedQueen87 Avatar asked Feb 09 '23 15:02

RedQueen87


1 Answers

not sure if any one else is still having this issue. But I found a possible solution.

Open View > Server Explorer. then open the 'data connections' node and delete any connections in there.

This seemed to have fixed it for me.

I ran windbg.exe as well and found it was throwing an exception in Microsoft.AspNet.SignalR.WebSockets.WebSocketHandler

Hope this helps

like image 77
Craig Walker Avatar answered Feb 11 '23 05:02

Craig Walker