MySQL Website Configuration in Visual Studio 2015 Failed - c#

FYI, I installed MySql Installer 5.7.21.0 based on developer option. I have Visual Studio 2015. I created a ASP.net MVC Project and I can see 'MySQL Website Configuration' on top of the Solution Explorer window. But when I click on it, the system shows following message:
"Could not load file or assembly 'Mysql.ConnectorInstaller
version=6.10.5.0, Version=6.10.5.0, Culture=neutral,
PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
System cannot find the file specified"
Is there any solution to solve this problem?
Thanks for your help

I downgraded MySQL Connector 6.10.5 to version 6.8.8 and the problem is solved!
The issue is because of Visual Studio Version. Connector which is available on MySQL Installer community 5.7.21.0 full pack is configured for Visual Studio 2017. So you have to downgrade your connector to lower version if you want to work with Visual Studio 2015.
So you do not need to reinstall full MySQL package. Just uninstall MySQL Connector from Windows Program and features and install version 6.8.8 from the following link.
https://dev.mysql.com/downloads/connector/net/6.8.html

Related

The data provider 'Mysql.Data.MySqlClient' could not be found in the system configuration on Visual Studio 2019 ASP.net

I just installed Visual Studio 2019.
I have also installed MySQL Connector 8.0.29 and MySQL for Visual Studio 1.2.10 in Visual Studio 2019.
I created a new connection to MySQL and the testing of the connection succeed.
When I try to click on "Next" it shows an error:
"The data provider "MySqlClient" could not be found in the system configuration. Unable to find the requested .NET Framework Data Provider. It may not be installed."
Any method to fix this problem on ASP.net?
I have modified the web.config but still cannot solve the problem.
Thanks.
Please check the below picture of the error.
Same problem here ! Here is my workaround. Please read version number carefully . Close vs 2019 and Run mysql installer. Remove only mysql for visual studio 1.2.10 and mysql connector 8.0.29. Then Open VS2019 again and close it. Then open mysql installer again and install mysql for visual studio 1.2.10 and mysql connector 8.0.28. NOT 8.0.29. Then open VS2019. MySQL Update Configuration Tool will be Popup Again and wait for finished. Then you will see error gone !
I think it was caused by connector version 8.0.29. Waste of many hours. Enjoy !
It can be that you need to use (.Net-Framework)-files instead of (.Net)-files also you need to refer to the connector via project>add reference
Here you need to find the MySQL folder with the dotnet connector then there is a MySql.Data.dll file which need to be referred to

.NET Core 1.0.1 VS 2015 Tooling Preview 2 without Visual Studio installed

I found many topics regarding this issue but it looks like it none of them can help me. I'm trying to install DotNetCore.1.0.1-VS2015Tools.Preview2.0.3.exe without Visual Studio installed - basically it's our build machine. When I run executable I get: "This product requires Visual Studio 2015 ..." . I've already tried to use SKIP_VSU_CHECK=1 and it didn't help.
Context:
We have TeamCity server build agents hosted on different machine and we don't want to install Visual Studio there. One of our project is *.xproj project and it cannot be built due to the following error: " error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
What I found so far is that I should install Vs2015Tools in order to build it. I have already installed .NET core SDK.

Task could not be loaded from assembly

I have an error in one of my projects at work. The error says:
Severity Code Description Project File Line Suppression State
Error The "StyleCopTask" task could not be loaded from the assembly
C:\Projects\Project
Name\Source\\MSBuild\StyleCop\v4.7\StyleCop.dll. Could not load
file or assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified. Confirm that
the declaration is correct, that the assembly and all its
dependencies are available, and that the task contains a public class
that implements
Microsoft.Build.Framework.ITask. DskDirectMarketing.Common
Here I can clearly see that there is problem in the relative path which VS is looking for StyleCop. Here is how it looks like:
<Import Project="$(SolutionDir)\MSBuild\StyleCop\v4.7\StyleCop.targets" />
and my SolutionDir declaration looks like this:
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
After some digging I noticed that in the error which prompts me there are 2 slashes:
C:\Projects\Project Name\Source\MSBuild\StyleCop\v4.7\StyleCop.dll
First thing I tried was to remove the dash from
<Import Project="$(SolutionDir)MSBuild\StyleCop\v4.7\StyleCop.targets" />
Id didn't worked.
After that I tried to put the absolute path but I had 2 slashes again.
How can I resolve this issue? Any help would be appreciated.
Based on #MaKCbIMKo's answer I installed .Net Framework 3.5 and this fixed my problem.
If you are using Windows 10, enable the .net framework 3.5 and if does not allow you to do so, open command prompt and run:
Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess
If you're also using Visual Studio 2019 on Windows 10, you could try the following:
Close your Visual Studio instance.
Open Visual Studio Installer.
On the version of Visual Studio that you're currently using, click on More and select Modify.
Select the Individual components tab.
Search for .NET Framework 3.5 development tools, select it and click on Modify.
Wait for the modification to finish.
Open your project in Visual Studio, then do a Clean, followed by a Build.
In my case the paths were correct, but visual studio needed to run under elevated permissions to access the file in question.
We need to use visual studio installer to install the .netframework 3.5 , if the visual studio installer shows both options Visual Studio 2019 and Visual studio Build Tools 2017. follow below step
If you are using the Visual Studio 2019 ( mine was 16.11.3 but should work for all the versions). you will have Visual studio 2019 and Visual studio build tools 2017 .
Select the Visual Studio Build Tools 2017 => select modify => go to individual components => select .Net Framework 3.5 development tools
Then proceed with the installation.
-Ideally it should work once you re open the Visual studio , if not restart the system

Error in Visual Studio 2015 When Add New WebForm

When I add new WebForm to my project, I get the following error:
Could not load file or assembly
'Microsoft.VisualStudio.JSLS,Version=14.0.0.0 , Culture=neutral ,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.the system
can not find the file specified.
I tried to create new website project and I tried to reinstall VS 2015 but this did not help.
This is a known bug with Visual Studio 2015. The officially-endorsed solution from Microsoft has been posted on MSDN:
If the “Tools for Universal Windows Apps Development” are still installed:
Go to Programs and Features, select Visual Studio 2105, click Change.
In Visual Studio setup, click Modify.
Deselect the feature “Tools for Universal Windows App Development”
Select “Tools for Universal Windows App Development” again, and click Update.
If you have already uninstalled the “Tools for Universal Windows Apps Development”:
Reinstall “Tools for Universal Windows App Development”
Or take the following steps to reinstall the JavaScript project system and language service:
a. Download the installer for your edition of Visual Studio, e.g.,
vs_community.exe.
b. Open a CMD window, and run the following command:
vs_community.exe /modify /installselectableitems JavaScript_Hidden
/passive
A temporary solution:
Shut down Visual Studio and reinstall the following package from the DVD or ISO:
x:\packages\JavaScript_LanguageService\JavaScript_LanguageService.msi
A better solution, endorsed by Microsoft, has been posted.
Remove the update received for visual studio TypeScript on 11/08/2015. it seems to be buggy. After removing TypeScript update, my VS is working fine ;-)
and if you try to reinstall x:\packages\JavaScript_LanguageService\JavaScript_LanguageService.msi from the installation package, soon or later you will face one more problem that "Something went wrong.. may be because of a extension.."
Easiest way is to remove TypeScript update for now. TypeScript future update may fix the problem.
OR
Run command prompt as administrator.
CD C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
devenv /updateconfiguration
devenv /clearcache

Custom visual studio extension error: "the extension manifest is invalid"

I am trying to edit a small and simple visual studio extension project. Everything builds, but when I double click on the vsix file to install, I get a popup with the message "the extension manifest is invalid". What could cause this/where can I start looking?
I am developing in and targeting Visual Studio 2012.
this error will occur when the target VS edition does not present in your computer. so please check configuration for "Supported VS Edition" of vsixmanifest file. There are several editions: Ultimate, Premium, Professional and Express Edition. Be sure that you have the supported VS edition being configured installed in your computer.
hope this will be helpful.

Categories

Resources