question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Npgsql PostgreSQL Integration Extension - Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0'

See original GitHub issue

Steps to reproduce

  1. Install Npgsql PostgreSQL Integration
  2. Open Visual Studio
  3. Getting following error Error

The issue

Exception message:
Stack trace: 
CreateInstance failed for package [NpgsqlVSPackage]Source: 'mscorlib' Description:
Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, 
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 
The system cannot find the file specified. System.IO.FileNotFoundException: Could 
not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, 
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 
The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Shell.15.0,
Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'  at
System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name,
Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)   at
System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError,
Boolean ignoreCase)   at System.Activator.CreateInstanceFromInternal(String assemblyFile,
String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, 
Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName) WRN:
 Assembly binding logging is turned OFF. To enable assembly bind failure logging,
 set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to
 1. Note: There is some performance penalty associated with assembly bind failure
logging. To turn this feature off, remove the registry value 
[HKLM\Software\Microsoft\Fusion!EnableLog].
--

Further technical details

Npgsql version: 4.1.3 PostgreSQL version: 10.12 Operating system: Windows 10 Pro IDE: Visual Studio Enterprise 2017

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:28 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
ErikEJcommented, Apr 25, 2021

OK! I will add support for Npgsql without DDEX then in the next release of EF Core Power Tools

2reactions
rojicommented, Apr 18, 2021

Closing as we no longer support the VSIX extension.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio 2015 fail to load package because Microsoft. ...
According to the error message, your extension dependency on Microsoft.VisualStudio.Shell.15.0, which is a VS 2017 assembly. So it is not ...
Read more >
Error after installing new version of Postgresql Integration ...
... installing the latest version of the extension (PostgreSQL Integration for VS) I get an error. "Could not load file or assembly System....
Read more >
Fail to migrate the VS 2019 project to VS 202
Our plugin project calls Microsoft.VisualStudio.Shell.14.0.dll which does not exist in VS 2022, try to remove it and add Microsoft.VisualStudio.
Read more >
Npgsql PostgreSQL Integration
The Npgsql PostgreSQL Integration extension adds PostgreSQL integration right inside Visual Studio. With this extension, you can:.
Read more >
[Programmer Tools]NuGet used
Instrumenting coverage tool for .net (framework 2.0+ and core) and Mono assemblies, reimpl… AMSWebAPI:RSCG_AMS a Roslyn Source Code Generator ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found