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

On azure webapp getting "An attempt was made to load a program with an incorrect format" #44

Closed
mksmanish79 opened this issue Aug 13, 2020 · 2 comments

Comments

@mksmanish79
Copy link

mksmanish79 commented Aug 13, 2020

I am trying to use LibSassHost in DotNetNuke cms and so far it's going good but when I host the code on azure webapp i am getting the below error.

I am using the latest version 1.3.1 and its working on my local and some other servers but not working on azure webapp.

Message :During loading of Sass compiler error has occurred. See the original error message: “An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)”.
StackTrace :
at LibSassHost.SassCompiler.Initialize() at LibSassHost.SassCompiler.InnerCompile(String content, Boolean indentedSyntax, String inputPath, String outputPath, String sourceMapPath, CompilationOptions options) at LibSassHost.SassCompiler.Compile(String content, String inputPath, String outputPath, String sourceMapPath, CompilationOptions options) at UXManager.Extensions.Apps.ThemeBuilder.Managers.ThemeManager.ProcessScss() at UXManager.Extensions.Apps.ThemeBuilder.Controllers.SettingsController.Save(String Guid, ThemeEditorData Data)

InnerMessage :An attempt was made to load a program with an incorrect format.(Exception from HRESULT: 0x8007000B)

InnerStackTrace : at LibSassHost.Internal.Native.Sass_Api.libsass_version() at LibSassHost.SassCompiler.Initialize()

@Taritsyn
Copy link
Owner

Hello, Manish!

Typically, this error occurs when the bitness of process and native assembly loaded into it does not match.

In this case, this error is caused by incorrect deployment of the libsass.dll assembly. One of the libsass.dll assemblies is located one level above of the x86 and x64 subdirectories.

@mksmanish79
Copy link
Author

Will try this and let you know.

Thanks for the quick response.

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