SA-MP Forums Archive
[Tutorial] How to fix missing DLL errors PROPERLY - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to fix missing DLL errors PROPERLY (/showthread.php?tid=606849)



How to fix missing DLL errors PROPERLY - Sew_Sumi - 10.05.2016

How to FIX missing DLL errors PROPERLY
This tutorial is in regards to the various "XXXX.dll is missing" errors.

It's also in regards to plugins failing to load.


Please, before proceeding with any changes, read the entire thread.

The reason you have these errors, is that you are missing a runtime, usually mentioned in the release thread of the plugin you are using.


Many times, you can find what runtime it actually is by simply googling the dll you are missing.

Sure, you will hit results of "Download missing DLL here", but scroll down a bit more, enter into some other threads, and there will be mentions of what runtime that particular DLL actualy comes from.

When people suggest others to download those third party DLLs, they're advocating running untrusted versions of files that should be from verified sources. They're also avocating that you should trust everything you download on the internet, which is a very big no-no.

The people who suggest to download the dll directly and put it in the application folder, have no idea the damage they can cause.
It's not that hard to actually find the right runtimes.


The main runtimes you really want, today are listed below.


Firstly, you want to get from microsoft DotNet 4.0 to start with.

https://www.microsoft.com/en-us/down....aspx?id=17851

Then you want the actual C runtimes.

https://support.microsoft.com/en-us/kb/2977003

Then you want to upgrade DotNet to 4.5.

https://www.microsoft.com/en-us/down....aspx?id=30653

If you have 64 bit windows, you'll need to install both the x86 and x64 versions of the runtimes. DotNet doesn't have this issue.

Everything should be installed in order of release date.

For a complete install of all, you should go...

Код:
2005
2008
DotNet 4.0
2010
2012
2013
2015
DotNet 4.5
I made this tutorial because I hate seeing people suggesting terrible "fixes" that aren't fixes, simply avoiding the problem.


Re: How to fix missing DLL errors PROPERLY - SyS - 10.05.2016

Good tut Sew


Re: How to fix missing DLL errors PROPERLY - Vince - 10.05.2016

Worth noting that the .Net framework is generally only required to run the compiler. The C++ redistributables are required to run the actual plugins.

And a note about safety: for some obscure reason people are wary about downloading random .exe files, but .dll files are somehow completely fine. Both contain compiled executable code and the only difference is that a dll acts through another program.


Re: How to fix missing DLL errors PROPERLY - BlackbirdXd - 03.09.2016

Whats The reason of download first .net 4.0 then 4.5 Why Not Directly Download, 4.5 Version?


Re: How to fix missing DLL errors PROPERLY - Spmn - 03.09.2016

Quote:
Originally Posted by BlackbirdXd
Посмотреть сообщение
Whats The reason of download first .net 4.0 then 4.5 Why Not Directly Download, 4.5 Version?
4.0 got libraries used only by dotnet 4.0 applications.
4.5 got libraries used only by dotnet 4.5 applications.
The same applies to MSVC Redist packages.


"If you have 64 bit windows, you'll need to install both the x86 and x64 versions of the runtimes. DotNet doesn't have this issue."
SA-MP is a 32bit application, so even if you are running the server on a 64-bit Windows machine, you'll need only x86 version.