Failed to load file or assembly "LibSass.x64" or one of its dependencies in VirtoCommerce

I get this error when opening a website from Visual Studio 2013. LibSass.x64.dll and libsassnet.dll are in the bin folder.

Failed to load file or assembly "LibSass.x64" or one of its dependencies

+3
source share
3 answers

This is a known issue with libsassnet. Basically you need the correct library reference: 32 bit or 64 bit. In our project, we refer to 64 bits, and therefore the project must be compiled and run in a 64-bit environment. By default, IIS Express runs at 32 bits (since VS.NET runs at 32), so you get an exception.

It’s better to create an IIS site and run it using it, or you can change the link to libgassnet to the 32-bit version.

PS: we solved this automatically in azure deployment, but we are still working with libsassnet developers to solve it in a local deployment.

0
source

You can switch to 64-bit IIS Express in Visual Studio settings:

Tools> Options> Projects and Solutions> Web Projects> Use the 64-bit version of IIS Express for websites and projects.

Update: If you get this error on a clean Windows machine, you need to install the Visual C ++ Redistributable Packages for Visual Studio 2013 .

I recommend installing both x86 and x64 packages.

+5
source

It looks like the latest version requires VC ++ 2015: https://www.microsoft.com/en-us/download/details.aspx?id=48145

0
source

Source: https://habr.com/ru/post/989050/


All Articles