A Visual Studio project doesn't see MySql namespace - mysql

I am compiling a desktop application in Visual Studio 2010 and it cannot find MySql component. It complains in using MySql.Data.MySqlClient; directive:
The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
There is a reference to MySql.Data and MySql.Data.dll is in bin folder.

Never mind. MySql.Data.dll was for other .NET Framework version. Replaced it with the right one.

Related

C# .Net Framework Class Library proj - Newtonsoft.Json gives "The system cannot find the file specified..." error

The project is a Class Library which I want to use it from a Visual Foxpro application. Visual Foxpro is 32bit.
.Net project:
Target framework .Net Framework 4.7.2
Target Platform x86.
Using Newtonsoft.Json and RestSharp
I registered the DLL using RegAsm and I am able to create an object of that from Visual Foxpro. Things are fine, if I simply do some string manipulation and I am getting return value from DLL into Visual Foxpro program.
Now, when I enable RestSharp, it breaks and throws below error:
*OLE IDispatch exception code 0 from System.Memory: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified...
*
I am not sure how this version conflict came up when I installed packages afresh and have not copied any file manually.
Any clue?
Thanks in advance
Rajesh
My Visual Foxpro test folder is different and I have copied all files from my .Net Debug folder into that folder.

I am struck with Error CS0246:The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)

I am getting the error(Error CS0246:The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?). So I tried installing MySql.Data NuGet Package in my ASP.NET project. But when I tried using Tools > NuGet Package manager > Manage NuGet packages for solution option to install it I can't find the MySql.Data since it says no result found. Then I tried Package manager Console to install MySql.Data by using the "Install-Package" command and also tried to update and reinstall every package using "Update-Package". But I had no luck can someone help me with this.

How to use assembly registered in GAC on MonoDevelop?

I recently registered Mysql.Data.dll assembly in GAC on 64bit Ubuntu 14.4 to use it following this example with an ASP.NET Mono project and verified.
I realized that although it is registered in GAC, it's not directly usable from Edit references dialogue on Monodevelop.
I tried to see how can this be made possible, the possibilities exists for Visual Studio which is something I don't need.
Doubts:
If the assembly is un-usable what is the concept of registering it in GAC?
How can this assembly be provided by a package (and advertised through a .pc file?
How can this assembly be bundled together with the application?
Are the steps I followed incorrect?

Microsoft Visual C++ Runtime Package framework is missing the framework dependency declaration in the manifest

I receive the following error on the Windows App Certification Kit for Windows 8.1.
The app manifest test detected the following errors:XXX takes a
dependency on Microsoft Visual C++ Runtime Package
(Microsoft.VCLibs.110.00) framework but is missing the framework
dependency declaration in the manifest.
My solution builds with zero errors. However, I receive an error after I create an app package and run the Windows Application Certification Kit.
I have added and removed references to the C++ runtime extension.
In addition, I do not see any fields in the app manifest editor to modify that would resolve this dependency error.
It sounds like you are including a library that was built with Visual Studio 2012. You will need to rebuild that library in Visual Studio 2013. If you just have the binary you will need to get an updated version from the author.
..
Or
Rename "Microsoft.VCLibs.110" to Name="Microsoft.VCLibs.110.00",
Or
Add a reference in your project to Microsoft Visual C++ Runtime Package
Add reference and find this Package. Adding this should resolve your problem

How do I reference a dll from SSIS in 2012?

I am trying to add a dll reference to my SSIS package (2012) with a script Component. The IntelliSense is working for me and I don't see error when coding. However, I get the following error:
Could not load file or assembly 'XYZ, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XYZ' or one of its dependencies. The system cannot find the file specified.
Please help.
If this is a custom DLL, then you will need to install it into the GAC (global assembly cache) for it to run outside of SSDT.
An assembly cannot be installed into the GAC unless it's strongly signed. Once it's signed, from a Visual Studio command prompt, registration would look like gacutil -if MyRadAssembly.dll