Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hermankan opened this issue Feb 9, 2020 · 2 comments
Closed

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

hermankan opened this issue Feb 9, 2020 · 2 comments

Comments

@hermankan
Copy link
Contributor

hermankan commented Feb 9, 2020

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.

@Taritsyn
Copy link
Owner

Taritsyn commented Feb 9, 2020

Hello, Herman!

Thanks for information! I will research this problem when I have free time.

@Taritsyn
Copy link
Owner

Taritsyn commented May 4, 2020

Hello, Herman!

This error is fixed in version 1.3.1.

@Taritsyn Taritsyn closed this as completed May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants