Old DLL file keeps being used

It hides it in the GAC. There it may reside indefinitely. Using a more recent version may indeed solve the problem, but there is an outstanding bug in Visual Studio that has to do with choosing the correct version of DLL files. (If DLL Hell wasn’t bad enough, the Visual Studio team is making it … Read more

Unmanaged DLLs fail to load on ASP.NET server

This happens because the managed dlls get shadow copied to a temporary location under the .NET Framework directory. See http://msdn.microsoft.com/en-us/library/ms366723.aspx for details. Unfortunately, the unmanaged dlls do NOT get copied and the ASP.NET process won’t be able to find them when it needs to load them. One easy solution is to put the unmanaged dlls … Read more

Could not load file or assembly ‘WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies

I know it’s kind of late for the OP but I ran into the same problem while trying out the Bootstrap 3 for MVC 4 NuGet package, in my case it had something to do with the Microsoft.AspNet.Web.Optimization package, and managed to find a simple solution. Try executing the following commands in the package manager … Read more

MinGW .exe requires a few gcc dll’s regardless of the code?

Your commands are wrong ! Go to the directory where your main.cpp file is, and try the following. g++.exe -Wall -c -g main.cpp -o obj\Debug\main.o g++.exe -static -static-libgcc -static-libstdc++ -o “bin\Debug\Hello World.exe” obj\Debug\main.o then you’ll no longer need to copy the DLLs (for your Hello World program). Other notes: The MinGW installation instructions recommends setting … Read more

Merge DLL into EXE?

For .NET Framework 4.5 ILMerge.exe /target:winexe /targetplatform:”v4,C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0″ /out:finish.exe insert1.exe insert2.dll ILMerge Open CMD and cd to your directory. Let’s say: cd C:\test Insert the above code. /out:finish.exe replace finish.exe with any filename you want. Behind the /out:finish.exe you have to give the files you want to be combined.

How to generate an import library (LIB-file) from a DLL?

You can generate a DEF file using dumpbin /exports: echo LIBRARY SQLITE3 > sqlite3.def echo EXPORTS >> sqlite3.def for /f “skip=19 tokens=4” %A in (‘dumpbin /exports sqlite3.dll’) do echo %A >> sqlite3.def The librarian can use this DEF file to generate the LIB: lib /def:sqlite3.def /out:sqlite3.lib /machine:x86 All of the filenames (sqlite3.dll, sqlite3.def, etc.) should … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)