Remote language server can't activate when I open ASP.Net MVC solution - c#

Recently, my ASP.Net project have been giving me issues, as soon as I open the project it displays the error:
There was an error activating the remote language server, C#/Visual Basic Server Client. For more details, please examine the ActivityLog.xml file.
I examined the ActivityLog.xml file as it suggested, and from the Activity Monitor Log I found the following errors:
#182: Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.Windows.Simulator.Client, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\platform\diagnosticshub\Microsoft.DiagnosticsHub.VisualStudio.Package.dll
#183: Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.UniversalApps.Deployment, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\EXTENSIONS\MICROSOFT\GRAPHICS\DEBUGGER\VsGraphicsDebuggerPkg.dll
I tried to repair VS2019 with hopes it will fix this error, but it didn't work. And I'm using the latest version of VS2019 (version 16.8.3).

Related

FileNotFound Error while creating SSIS package programmatically using C#

I am trying to write an SSIS package programmatically using C#.
I have installed SQL Server Integration Services Projects v16 and added all the references like Microsoft.SqlServer.ManagedDTS and using Microsoft.Dts.Runtime.
However, at runtime, I am getting an error:
System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.SqlServer.DTSRuntimeWrap, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.'
I tried to manually add the DLL "Microsoft.SqlServer.DTSRuntimeWrap" from "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\SSIS\160\Binn" but it throws the same error.
My Microsoft SQL Server Integration Services Projects is version 16.0.5035.3 and hence, I added the reference from the \160\Binn.
However, it seems that the code is asking for another version (Version=13.0.0.0).
Can someone please tell me what's going wrong?
Much appreciated!

Could not load file or assembly 'System

i developed my application using visual studio 2013, then deployed to a window server, current the server has been upgraded to windows server 2022 and my application is breaking and get getting this error:
"Could not load file or assembly 'System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."
I know its a compatibility issue but hat is the fastest remedy to this.
try putting copy local= true in each DDL's properties that say "Could not load file or assembly"

Reference.svcmap: Could not load file or assembly 'Microsoft.SqlServer.SqlEnum,

when I upload the website on the host below error accrue I don't have any problem in localhost but when I upload it on a host this error accrues:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Reference.svcmap: Could not load file or assembly 'Microsoft.SqlServer.SqlEnum, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
Source Error:
[No relevant source lines]
Source File: /App_WebReferences/XMLForSMSServiceReference1/ Line: 1
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.SqlServer.SqlEnum, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' could not be loaded.
what should I do?
Best Regards
Neda
Possible duplicate of : C# SMO and SqlEnum references error
Short answer is the binaries you are deploying on to target server are missing referenced binaries (I am guessing the Sql server SMO library).
When you deploy a project to the destination you have to ensure the destination has the shared components (such as SQL SMO) already installed there, if not you have to include such shared binaries through your msi/deployment.
In your case there are two possible workarounds depending upon how you want to achieve it.
Create the msi and include all binaries (including the once those go in global cache - strongly signed libraries) - this is the more sensible way of handling standard deployment scenarios.
Only deploy your project binaries but ensure the referenced packages are already installed on destination.

Microsoft.CodeAnalysis failed to load file

I have downloaded sample Asp.net project from the git repository and try to build in the local machine VS 2017
below is the error it is showing
Error CS8032 An instance of analyzer
Microsoft.AspNetCore.Mvc.Analyzers.AvoidHtmlPartialAnalyzer cannot be
created from
C:\Users\avinash.nuget\packages\microsoft.aspnetcore.mvc.analyzers\3.0.0-alpha1-10670\analyzers\dotnet\cs\Microsoft.AspNetCore.Mvc.Analyzers.dll
: Could not load file or assembly 'Microsoft.CodeAnalysis,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
one of its dependencies. The system cannot find the file
specified.. MusicStore E:\LearningTools\sampleapp\MusicStore-master\MusicStore-master\samples\MusicStore\CSC 1 Active
And here is the link for the git repo: https://github.com/aspnet/MusicStore for project reference.
What may be the issue in my machine or any missing file/lib in the framework?
It seems you do not have a dot.Net core SDK installed on your machine. Try installing the SDK and verify.
Thanks,
SK

Unknown build error, 'Could not load file or assembly 'System.Windows

I am trying to build a test project for silverlight application. When i build this project it throws following error
Unknown build error, 'Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'
I have system.winwos dll in my references and i am using visual studio 2012.
What should i do to resolve this error
More Details:
If I remove system.windows.control.Navigation dll, this error no longer comes up but build requires system.windows.control.Navigation.
Finally found a system.windows version 5.0.5.0 in C:\Program Files (x86)\Microsoft Silverlight\5.1.20913.0 folder
Had to add this file manually in project.csproj file using tag
Getting other build errors not but at least the this one is resolved.
Thanks for all your help!
Generally when I've had this problem it's because my application is set to build 64-bit rather than AnyCpu and the offending assembly is 32-bit. Or vice versa.

Categories