Search code examples
virtocommerce

Could not load file or assembly 'LibSass.x64' or one of its dependencies in VirtoCommerce


I am getting this error when I bring up the website from within Visual Studio 2013. LibSass.x64.dll & libsassnet.dll are in the bin folder.

Could not load file or assembly 'LibSass.x64' or one of its dependencies


Solution

  • It is a known issue with libsassnet. Basically you need correct library referenced, either 32 bit or 64 bit. In our project we reference 64 bit and thus project needs to be compiled and run in 64 bit environment. By default IIS Express runs in 32 bit (since VS.NET runs in 32) so that is why you get an exception.

    Better create an IIS site and run it using it or you can modify nuget reference of libsassnet to 32 bit version.

    PS: we resolved that automatically in azure deployment, but still working with libsassnet developers to resolve it when it is deployed locally.