Package Manager Console not opening - asp.net-core

When ever i try to open package manage console from my visual studio 2017(Community) it will give me following error.
Could not load file or assembly 'System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)

Related

Visual Basic Could not load file or assembly 'System.Data.Common, Version=6.0.0.0 error

So, i sent the project directory to my friend, but whenever he runs it he allwys get this error we are trying to search for a solution but we can find any
The error says:
System.IO.FileNotFoundException: 'Could not load file or assembly
'System.Data.Common, Version=6.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system could not find the specified file.'

Imageresizer Faces Plugin Error

After installing this both manually and via the package manager I continue to see this error. I was wondering if any of you have encountered this. I get this when I use the ?f.detect=true.
{"dx":0.0,"dy":0.0,"dw":800.0,"dh":510.0,"ow":800.0,"oh":510.0,"cropx":0.0,"cropy":0.0,"cropw":800.0,"croph":510.0,"features":null,"message":"Could
not load file or assembly 'OpenCvSharp, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=6adad1e807fea099' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)"}

.netcore 1.1 "assembly's manifest definition does not match the assembly reference"

I have a working .netcore 1.1 app running with net451.
I changed the target framework to net462, cleared out bin/nuget packages, rebuilt everything/dotnet restore and it compiled fine.
When I access a method from the System.Http.Net library, the app throws the following exception.
System.IO.FileLoadException: Could not load file or assembly
System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The
located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040) File name:
'System.Diagnostics.DiagnosticSource, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 at
System.Net.Http.WinHttpHandler.SendAsync(HttpRequestMessage request,
CancellationToken cancellationToken)
How do I further debug this issue? I'm using win10-x64 and vs2017 RC.
I had the same issue. After updating .Net Core SDK to the latest version, the problem has been disappeared.

Could not load file or assembly 'Mono.Posix'

I'm attempting to run an exe on RHEL 6 using Mono. I've compiled Mono 4.0.2.4 and when I try to run my exe it crashes.
My Command:
/opt/mono/bin/mono /opt/mono/lib/mono/4.5/mono-service.exe -l:plexos.lock ./DALicenseServer.exe
The Error.
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
File name: 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
File name: 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
I think I have the Mono.Posix.dll file:
ls /opt/mono/lib/mono/4.0/Mono.Posix.dll
/opt/mono/lib/mono/4.0/Mono.Posix.dll
This is a bug (Bug 56787) currently tracked by the Xamarin team. You must download and paste the missing dll in your environment then restart visual studio.
for vs 2015 paste here the dll:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin\Xamarin\
for vs 2017 paste here the dll:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Xamarin.VisualStudio
check this link for step by step: https://releases.xamarin.com/common-issues-in-the-xamarin-15-2-2-release-being-tracked-by-the-xamarin-team/
1) Try running mono with trace mode to see if it really is Mono.Posix.dll or a native shared library (.so) that is not being found.
mono --trace /opt/mono/lib/mono/4.5/mono-service.exe -l:plexos.lock ./DALicenseServer.exe
2) Check to see if the assembly has been installed properly in the GAC:
gacutil -l Mono.Posix
The following assemblies are installed into the GAC:
Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756
Number of items = 1
3) If the assembly is not found in the GAC, something went wrong during the install (make install) as this assembly is part of the framework install. You can manually assign the MONO_PATH to tell mono where it should find assemblies that are not in the current directory ($PWD) and/or not in the GAC:
export MONO_PATH=/path/to/assemblies:/another/path/to/assemblies:$PATH

IlMerge in VSTO project results in FindRibbons error

I created a fresh VSTO project .NET 4.5.1 (Outlook) and setup IlMerge using the tutorial here.
After the failure I looked in the bin/debug and OutlookAddIn8.dll is there so I'm not sure how it's having a problem finding it. Is there something specific I need to do for VSTO projects?
Error 1 The "FindRibbons" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'OutlookAddIn8, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
or one of its dependencies. The system cannot find the file specified.
File name: 'OutlookAddIn8, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'