ErikEJ / EntityFramework6PowerTools

This is the codebase for Entity Framework 6 Power Tools Community Edition, and modern EF 6 providers for SQL Server and SQL Server Compact
Other
183 stars 27 forks source link

Sequence contains no matching element error when running VS as Administrator #54

Closed katit closed 5 years ago

katit commented 5 years ago

VS 2017 When using "View entity data model(view-only)" feature I get popup with error "Sequence contains no matching element".

Tried to simplify solution as much as possible and narrowed down to the fact if I run solution by "double-click" on .sln - it works. However, when I run VS using my shortcut (in Admin mode) - I get this error.

ErikEJ commented 5 years ago

Are you able to share a repro?

katit commented 5 years ago

This is shortcut config. I wonder if it's related to "Start in" root. I use this shortcut to launch VS

Let me know if you need actual project.

vs shortcut

ErikEJ commented 5 years ago

I think I need a project..

katit commented 5 years ago

Well. I started to come up with a project and couldn't reproduce it. Now I narrowed this down to how I open that specific solution. It is not related to Admin rights it seems, just to how solution opened.

When I open solution via File->Open Project/Solution it works When I go to File->Recent Projects/Solutions - it doesn't work for that specific solution/location. For exact same solution moved to different location it works.

So it seems to be related to how link to "recent" stored in VS2017. And I don't think I can create reproduction.

Is there any way to enable logging/debugging so I can get you more details on when it happens? I am willing to share my PC via TeamViewer and demonstrate problem.

seawerst commented 5 years ago

You can get the code of the extension, open it in another instance of visual studio and attache this instance to the first one before reproducing the error.

ErikEJ commented 5 years ago

Clsoing as the requested repro project was not supplied - feel free to re-open