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.
source share