I am working on a Ubuntu 18.04 environment using Visual Studio Code and .NET Core v2.2.
After including a few existing projects into a solution that I'm working on, I ran into errors when I tried to compile stating that the namespace "Microsoft.AspNet.Mvc" could not be found.
So, I added a package reference for the projects that were complaining by using the dotnet CLI:
dotnet add package Microsoft.AspNet.Mvc --version 3.0.20105.1
But now when I try to dotnet restore or dotnet msbuild the solution file, I'm getting warnings reporting that:
warning NU1701: Package 'Microsoft.AspNet.Mvc 3.0.20105.1' was
restored using '.NETFramework,Version=v4.6.1' instead of the project
target framework '.NETCoreApp,Version=v2.2'.
This package may not be fully compatible with your project.
I would like to figure out which package version of Microsoft.AspNet.Mvc I need to install in order to be compatible with .NET Core v2.2.
I realize that this is just a warning and using the .NETFramework v4.6.1 may be okay, but I have been debugging a very strange issue that is only happening on a Ubuntu environment, so I would like to determine whether package versioning is a problem.
I have tried Google searching to determine which version of MVC is compatible with .NET Core 2.2, but I have yielded any useful results.
Does anyone know the answer to this question? Or would you be able to point me in the direction of a source that can answer it?
WAMP won't turn green. It was working fine a couple of weeks ago. When looking at other answers on this topic, a lot said to install services in Apache.
When I do this, I get an error code stating:
"The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix the problem."
As Oriol said, you need the following redistributables before installing WAMP.
From the readme.txt
BEFORE proceeding with the installation of Wampserver, you must ensure
that certain elements are installed on your system, otherwise
Wampserver will absolutely not run, and in addition, the installation
will be faulty and you need to remove Wampserver BEFORE installing the
elements that were missing.
Make sure you are "up to date" in the redistributable packages VC9,
VC10, VC11, VC13 and VC14 Even if you think you are up to date,
install each package as administrator and if message "Already
installed", validate Repair.
The following packages (VC9, VC10, VC11) are imperatively required to Wampserver 2.4, 2.5 and 3.0, even if you use only Apache and PHP versions VC11 and VC14 is required for PHP 7 and Apache 2.4.17
VC9 Packages (Visual C++ 2008 SP1)
https://www.microsoft.com/en-us/download/details.aspx?id=5582
https://www.microsoft.com/en-us/download/details.aspx?id=2092
VC10 Packages (Visual C++ 2010 SP1)
https://www.microsoft.com/en-us/download/details.aspx?id=8328
https://www.microsoft.com/en-us/download/details.aspx?id=13523
VC11 Packages (Visual C++ 2012 Update 4)
The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page:
http://www.microsoft.com/en-us/download/details.aspx?id=30679
VC13 Packages[/b] (Visual C++ 2013)
The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe
VC14 Packages (Visual C++ 2015)
The two files vcredist_x86.exe and vcredist_x64.exe to be download are on the same page:
https://www.microsoft.com/en-us/download/details.aspx?id=52685
VC Packages x64 (Visual C++ 2017)
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
Quite simply:
Uninstall wampserver
Install Visual C++ Redistributable for Visual Studio 2015
Install wampserver
VCRUNTIME140.dll error
This error means you don't have required Visual C++ packages installed in your computer.
If you have installed wampserver then firstly uninstall wampserver.
Download the VC packages
Download all these VC packages and install all of them. You should install both 64 bit and 32 bit version.
-- VC9 Packages (Visual C++ 2008 SP1)--
http://www.microsoft.com/en-us/download/details.aspx?id=5582
http://www.microsoft.com/en-us/download/details.aspx?id=2092
-- VC10 Packages (Visual C++ 2010 SP1)--
http://www.microsoft.com/en-us/download/details.aspx?id=8328
http://www.microsoft.com/en-us/download/details.aspx?id=13523
-- VC11 Packages (Visual C++ 2012 Update 4)--
The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page http://www.microsoft.com/en-us/download/details.aspx?id=30679
-- VC13 Packages] (Visual C++ 2013)--
The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page https://www.microsoft.com/en-us/download/details.aspx?id=40784
-- VC14 Packages (Visual C++ 2015)--
The two files vcredist_x86.exe and vcredist_x64.exe to be download are on the same page
http://www.microsoft.com/en-us/download/details.aspx?id=48145
install packages with admin priviliges
Right click->Run as Administrator
install wampserver again
After you installed both 64bits and 32 bits version of VC packages then install wampserver again.
You need to install some Visual C++ packages BEFORE installing WAMP (if you have installed then you must uninstall and reinstall).
You need: VC9, VC10, VC11, VC13 and VC14
In readme.txt of wampserver 3 (on SourceForge) you can find the links.
Be careful! If you use a 64-bit OS you need to install both versions of each package.
I had the same problem, and I solved it by installing :
Redistribuable Visual C++ pour Visual Studio 2012 Update 4 (6.9 MB)
Redistributable Visual C++ pour Visual Studio 2015 Update 1 (14.1 MB)
NB : 64 bit installation was enough, I had to uninstall / reinstall Wamp after that
Since you already had a running version of WAMP and it stopped working, you probably had VCRUNTIME140.dll already installed. In that case:
Open Programs and Features
Right-click on the respective Microsoft Visual C++ 20xx Redistributable installers and choose "Change"
Choose "Repair". Do this for both x86 and x64
This did the trick for me.
After lots and lots of installing and uninstalling for a whole day and trying every packages for every answers in here, the only thing that worked for me was:
Uninstall Wamp and reboot
installing Visual Studio 2017 Community edition and choose "Web development" and check all of the options in the right site. Here's a screenshot:
This somehow install something that is needed for Wamp as well.
install Wamp, and you should be all good.
Link to visual studio 2017 Community edition
WAMP is not turning GREEN? Don`t panic
First of all check your windows update by searching "Windows Update"
or
Download updates from microsoft windows site (i had windows 7 x64 updated to service pack 1 full) windows 7 Service pack 1 download
Now there are some more downloads that support WAMP for installing time
From the readme.txt
BEFORE proceeding with the installation of Wampserver, you must ensure
that certain elements are installed on your system, otherwise
Wampserver will absolutely not run, and in addition, the installation
will be faulty and you need to remove Wampserver BEFORE installing the
elements that were missing.
Make sure you are "up to date" in the redistributable packages VC9,
VC10, VC11, VC13 and VC14 Even if you think you are up to date,
install each package as administrator and if message "Already
installed", validate Repair.
The following packages (VC9, VC10, VC11) are imperatively required to
Wampserver 2.4, 2.5 and 3.0, even if you use only Apache and PHP
versions VC11 and VC14 is required for PHP 7 and Apache 2.4.17
VC9 Packages (Visual C++ 2008 SP1)
https://www.microsoft.com/en-us/download/details.aspx?id=5582
https://www.microsoft.com/en-us/download/details.aspx?id=2092
VC10 Packages (Visual C++ 2010 SP1)
https://www.microsoft.com/en-us/download/details.aspx?id=8328
https://www.microsoft.com/en-us/download/details.aspx?id=13523
VC11 Packages (Visual C++ 2012 Update 4) The two files
VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on
the same page:
http://www.microsoft.com/en-us/download/details.aspx?id=30679
VC13 Packages[/b] (Visual C++ 2013) The two files
VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe
VC14 Packages (Visual C++ 2015) The two files vcredist_x86.exe and
vcredist_x64.exe to be download are on the same page:
https://www.microsoft.com/en-us/download/details.aspx?id=52685
VC Packages x64 (Visual C++ 2017)
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
After installing Visual Studio 2015 my app session doesn't work anymore. I'm using Microsoft.Web.RedisSessionStateProvider.
My problem was I had an outdated version of the Microsoft.Web.RedisSessionStateProvider package (0-0-3-Pre).
Be sure to update it to make it compatible with the new changes included in ASP.NET 4.6.
Open the Package Manager Console in Visual Studio, select your project and run:
Update-Package Microsoft.Web.RedisSessionStateProvider
Does anyone know why my visual studio 2015 restart when I try to install nuget packages? It happens only on certain projects.
I have 64bit intel machine.
I am running windows 7 (64 bit) on this machine.
I have installed Visual Studio Ultimate 2012 on my machine.
I have installed Qt Creator 3.0.1 based on Qt 5.2.1 (MSVC 2010, 32bit)
I am not able to configure opencv 2.4.8 on this Qt on my machine.
I have tried many things but I am not able to get opencv 2.4.8 work on qt.
Please tell me the necessary steps.
Please note, I guess there is some twist because of my software versions e.g. 64 bit machine, opencv 2.4.8 and qt based on MSVC2010, but I am not sure.
Please..please..please help me.
Thank you in advance.
Are you failing to compile OpenCV, link it with your application or running your executable from Qt? Are you linking statically? The problems can be quite different.
If you are linking statically everything needs to be compiled with the same Microsoft Visual C++ compiler AFAIK [VC11 (2012) in your case]. OpenCV is Ok because they provide binaries for vc10 (VS2010), vc11 (VS2012) and vc12 (VS2013). For Qt itself download the version compiled against VS2012 available here.
If you are required to use Qt libraries compiled against vc10, then make sure you install the redistributables for Microsoft Visual C++ 2010 Redistributable Package (x86) and link your application dynamically. And of course, use Dependency Walker if you have problems with wrong DLLs.