Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest update fails to load. #2335

Closed
WaltDaniels opened this issue May 15, 2024 · 17 comments
Closed

Latest update fails to load. #2335

WaltDaniels opened this issue May 15, 2024 · 17 comments
Labels
question Further information is requested

Comments

@WaltDaniels
Copy link

Create a bug report, feature proposal, or ask a question.

NOTICE: A bug report without sufficient technical and repro details and version information WILL BE CLOSED WITHOUT ANY FURTHER ACTION.

Provide steps to reproduce a bug

Extension fails to load with this error.
image

Provide technical details

  • EF Core Power Tools version: 2.6.282

  • Exact Visual Studio version: Visual Studio 2022 17.9.7

  • Database engine: SQL Server

  • EF Core version in use: EF Core 7

  • Is Handlebars templates used: no

  • Is T4 templates used: no

  • Is a SQL Server .dacpac used: no

@ErikEJ
Copy link
Owner

ErikEJ commented May 15, 2024

Please provide the Activitylog.xml file.

Try restarting/ repairing VS.

@WaltDaniels
Copy link
Author

I tried restarting.
The message does not appear when I start VS "with no code", but when I open a solution it shows up.

ActivityLog.zip

I will try repairing next and update here.

@WaltDaniels
Copy link
Author

I ran Visual Studio repair which reset my environment. Now the extension installs, does not generate any errors, but is unavailable. It shows as installed, but does not appear in the context menu nor options.

image

Attaching the install log:
dd_VSIXInstaller_20240515154028_3134.zip

@ErikEJ
Copy link
Owner

ErikEJ commented May 16, 2024

Maybe it is disabled and must be enabled

@ErikEJ
Copy link
Owner

ErikEJ commented May 16, 2024

It only loads when you have a solution open, btw

@ErikEJ
Copy link
Owner

ErikEJ commented May 16, 2024

I see this in the ActivityLog:

CreateInstance failed for package [EFCorePowerToolsPackage]Source: 'mscorlib' Description: Could not load file or assembly 'file:///C:\Users\WalterDaniels\AppData\Local\Microsoft\VisualStudio\17.0_7c6dcbb8\Extensions\h2xnvun0.fdv\EFCorePowerTools.dll' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Users\WalterDaniels\AppData\Local\Microsoft\VisualStudio\17.0_7c6dcbb8\Extensions\h2xnvun0.fdv\EFCorePowerTools.dll' or one of its dependencies. The system cannot find the file specified.
File name: 'file:///C:\Users\WalterDaniels\AppData\Local\Microsoft\VisualStudio\17.0_7c6dcbb8\Extensions\h2xnvun0.fdv\EFCorePowerTools.dll'

@WaltDaniels
Copy link
Author

That ActivityLog was from the initial error. After uninstalling/reinstalling the files are here:
image

@ErikEJ
Copy link
Owner

ErikEJ commented May 16, 2024

I am not able to reproduce and no storm of error reports, so I must be specific to your system, maybe other extensions interacting.

@FranCordeiro
Copy link

I'm facing the same error.
As a workaround I tried to install a previous version, however, the real version is the last one available:

image

@ErikEJ
Copy link
Owner

ErikEJ commented May 17, 2024

@FranCordeiro pls share the ActivityLog.xml file

@ErikEJ
Copy link
Owner

ErikEJ commented May 17, 2024

Try to manually remove all files in the extension folder and download and install outside VS

@FranCordeiro
Copy link

ActivityLog details:
image

@ErikEJ
Copy link
Owner

ErikEJ commented May 17, 2024

@FranCordeiro Which exact VS version do you have?

@FranCordeiro
Copy link

@ErikEJ 17.3.6
image

@ErikEJ
Copy link
Owner

ErikEJ commented May 17, 2024

@FranCordeiro I think you have to update to 17.5 or later (current is 17.9.7)

@ErikEJ ErikEJ closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
@ErikEJ ErikEJ added the question Further information is requested label May 21, 2024
@FranCordeiro
Copy link

Solved with the update to 17.5.
Thanks @ErikEJ !

@ErikEJ
Copy link
Owner

ErikEJ commented May 22, 2024

@FranCordeiro Great news!

If you like my free tools, I would be very grateful for a rating or review on Visual Studio Marketplace or even a one-time or monthly sponsorship

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants