SoftekBarcodeLib2.dll System.IO.FileLoadException
When distributing the SoftekBarcodeLib2.dll component you may find that you get an error message similar to the following:
System.IO.FileLoadException: Could not load file or assembly ‘SoftekBarcodeLib2, Version=X.X.X.X Culture=neutral, PublicKeyToken=3c09a6b205d2b618’ or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
File name: ‘SoftekBarcodeLib2, Version=X.X.X.X, Culture=neutral, PublicKeyToken=3c09a6b205d2b618’ —> System.Runtime.InteropServices.COMException (0x800736B1): This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
For Version 7.4.1 and later…
For x86 based systems, the solution is to install the Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) from the following link:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2&displaylang=en
For x64 based systems, the solution is to install the Microsoft Visual C++ 2008 SP1 Redistributable Package (x64) from the following link:
http://www.microsoft.com/downloads/en/details.aspx?familyid=ba9257ca-337f-4b40-8c14-157cfdffee4e&displaylang=en
For Version 7.3.1 and earlier…
The solution is to install the Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) either from the following link:
or include the Visual C++ run-time library files as a prerequisite when you publish your application.
You can also download and install one of the following ready made install sets, created from the Visual Studio publish wizard. This installs a simple demo application that uses the trial version of the SoftekBarcodeLib2.dll file.
Visual Studio 2008:
http://www.bardecode.com/downloads/SoftekBarcodeLib2Publish.zip
Visual Studio 2005
http://www.bardecode.com/downloads/SoftekBarcodeLib2Publish_vs2005.zip