Skip to content

Unable to load DLL 'libsass' on Windows Server 2008 R2 #35

@hermankan

Description

@hermankan

When using version 1.2.10, I get the following exception, though it is expected to have MSVC runtime embedded into native assemblies:

Unable to load DLL 'libsass': Exception from HRESULT: 0xC000001D
   at LibSassHost.Internal.Native.Sass_Api.libsass_version()
   at LibSassHost.SassCompiler.Initialize()
   at LibSassHost.SassCompiler.Initialize()

Just in case, there are both x64 and x86 subfolders with the native libraries within, so whether it is a 32-bit or 64-bit environment should not be an issue. I tried installing the runtime explicitly but to no avail.

I am not sure if libsass calls Windows 8 API that is not supported by Windows Server 2008 R2, which could cause the exception. Anyway I finally got it working by replacing those libraries with the ones from the libsass repository. The DLLs differ greatly in size, which makes me think of some incompleteness of LibSassHost.Native packages.

EDIT: Only Version and LanguageVersion worked but not Compile(). I recompiled libsass with MFC being a static library and that did the trick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions