Could not load file or assembly 'System.Web.RegularExpressions, Version=4.0.0.0 - visual-studio

Last night I upgraded my Visual Studio 2017 to the latest version 15.7.0. Since then all my projects are not running any more.
The error I am getting:
Could not load file or assembly 'System.Web.RegularExpressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
I tried adding manually a referece to the DLL, I am still getting the error

I fixed the issue by 1) updating Visual Studio from 15.7.0 to 15.7.1 2) repairing the installation

Related

"XAMLTaskFactory" could not be loaded from Assembly

I've been trying to run x86 assembly code on my machine for schoolwork. Sadly I've been getting this error when trying to build the project files and I can't figure out what it's about and how to fix it:
Error MSB4175 The task factory "XamlTaskFactory" could not be loaded from the assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". The system cannot find the path specified hi C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\masm.targets 70
Has anyone had the same problem? I've tried making new projects, running as administrator, done a clean install of Visual Studio and all the packages, even factory reset my laptop.

Visual Studio Installer - Unable to acquire updated Visual Studio Installer

I have a problem with installing Visual Studio 2022 from https://visualstudio.microsoft.com/fr/downloads/
I got this error when I try to run VisualStudioSetup.exe .This is my first attempt
Unable to acquire updated Visual Studio Installer. This problem occurs when the installer on your machine is the same or lower than the version to update. If this is your first attempt, we recommend that you Continue to install the Visual Studio update.
[Continue] [Cancel]
When I click continue and this error appear
Unable to launch the installer. Error: Could not load file or assembly 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
I 've try to unistall and ran setup.exe again but it didn't work..

Xamarin Forms "Todo DocumentDB" sample - Higher version than referenced assembly System.Collections.Specialized error

I'm using Visual Studio 2013 and can't seem to fix the following build error that I get when I go to https://developer.xamarin.com/samples/xamarin-forms/WebServices/TodoDocumentDB/ and download the sample code and attempt to run it:
Error 2 Assembly 'Microsoft.Azure.DocumentDB.Core, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses
'System.Collections.Specialized, Version=4.0.1.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced
assembly 'System.Collections.Specialized, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' c:\Users\Elijah
Lofgren\Downloads\T1mobio\TodoDocumentDB\packages\Microsoft.Azure.DocumentDB.Cr
e.1.0.0\lib\netstandard1.6\Microsoft.Azure.DocumentDB.Core.dll
TodoDocumentDB.Droid
I've tried updating all the nuget packages but that hasn't worked.
I can't seem to find anyone else with this error.
Thanks!
It looks like this code is not compatible with Visual Studio 2013 on PC.
On PC, you need to use Visual Studio 2015 (or newer).
On Mac, you can use any version of Visual Studio for Mac.

Visual Studio unable to read the project file (anymore)

Ever since my latest windows update, (which system restore is failing to undo) I can't load any projects with visual studio 2010. The project are greyed out (unavailable) and when I try to reload them I get the error:
C:\Users\Benoit\Documents\Visual Studio 2010\Projects\Test123\Test123\Test123.csproj : error : Unable to read the project file 'Test123.csproj'. Could not load file or assembly 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
I tried creating new projects: same error
I tried creating different type of projects (command prompt, silverlight, windows phone): same error
Deleting the .suo and .user files did not change anything
I did not move the projects
Using Visual Studio 2010 with Windows Vista
It looks like the Global Assembly Cache (GAC) is messed up, or possibly the update has done something with the Microsoft.Build assembly file itself.
Try repairing .NET 4.0, and if that does not work you can try completely uninstalling and reinstalling the framework.

Error loading Visual Studios 2012

Everytime i try to open Visual Studios 2012, an error message displays
" Could not load file or assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e25' or one of its dependencies. The system cannot find the file specified."
Any idea what is wrong? How to fix this?
Try to Uninstall the Visual Studio that you have and download it from http://www.microsoft.com/visualstudio/esn/2013-preview. It works for me perfectly.

Resources