Giter VIP home page Giter VIP logo

Comments (22)

Taritsyn avatar Taritsyn commented on June 20, 2024 1

Hello, Vincent!

.NET applications, ASP.NET web applications and sites in 64-bit Windows can run not only 64-bit processes, but also in 32-bit processes. For correct working of the LibSassHost in 32-bit process need to install the LibSassHost.Native.win-x86 package. If you do not know in which process will run your application or web site, then install both packages: LibSassHost.Native.win-x86 and LibSassHost.Native.win-x64.

from libsasshost.

vincentkeizer avatar vincentkeizer commented on June 20, 2024

@Taritsyn , Thanks for your fast reply.
I have checked IIS and the application pool and both run on 64 bit.

Installing the C++ redistribution package does solve the problem. Does it require more than just "msvcp140.dll"? or does "msvcp140.dll" have dependencies on other dlls?

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

What version of ASP.NET you use?

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

Try the method from the following comment.

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

Experimentally found out, that need the following assemblies:

api-ms-win-core-console-l1-1-0.dll
api-ms-win-core-datetime-l1-1-0.dll
api-ms-win-core-debug-l1-1-0.dll
api-ms-win-core-errorhandling-l1-1-0.dll
api-ms-win-core-file-l1-1-0.dll
api-ms-win-core-file-l1-2-0.dll
api-ms-win-core-file-l2-1-0.dll
api-ms-win-core-handle-l1-1-0.dll
api-ms-win-core-heap-l1-1-0.dll
api-ms-win-core-interlocked-l1-1-0.dll
api-ms-win-core-libraryloader-l1-1-0.dll
api-ms-win-core-localization-l1-2-0.dll
api-ms-win-core-memory-l1-1-0.dll
api-ms-win-core-namedpipe-l1-1-0.dll
api-ms-win-core-processenvironment-l1-1-0.dll
api-ms-win-core-processthreads-l1-1-0.dll
api-ms-win-core-processthreads-l1-1-1.dll
api-ms-win-core-profile-l1-1-0.dll
api-ms-win-core-rtlsupport-l1-1-0.dll
api-ms-win-core-string-l1-1-0.dll
api-ms-win-core-synch-l1-1-0.dll
api-ms-win-core-synch-l1-2-0.dll
api-ms-win-core-sysinfo-l1-1-0.dll
api-ms-win-core-timezone-l1-1-0.dll
api-ms-win-core-util-l1-1-0.dll
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-multibyte-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
concrt140.dll
msvcp140.dll
ucrtbase.dll
vcruntime140.dll

from libsasshost.

vincentkeizer avatar vincentkeizer commented on June 20, 2024

Thanks for the update.

from libsasshost.

taranjitbawa avatar taranjitbawa commented on June 20, 2024

Sorry about bumping this issue again.

I am having identical issue and i have the files from the last comment in my build already. Sitting in 34 and 64 bit folders.

When i am in debug mode using IIS express it works fine, but when i run it as Local IIS i get the error at the OP.

Or if i run it as IIS website it get this: (yes its from SmartStore)
https://github.com/smartstore/SmartStoreNET/issues/2132

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

Hello, Taranjit!

What version of the LibSassHost library are you using?

from libsasshost.

taranjitbawa avatar taranjitbawa commented on June 20, 2024

Hi,

SmartStore comes packaged with 1.2.7 and I was getting this above error.

But i upgraded to 1.3.2 and i get this error now:

System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'System.String LibSassHost.Helpers.SassErrorHelpers.GenerateErrorDetails(LibSassHost.SassСompilationException, Boolean)'.
Source=BundleTransformer.SassAndScss
StackTrace:
at BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.InnerTranslate(IAsset asset, CompilationOptions sassOptions, Boolean enableNativeMinification)
at BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.Translate(IAsset asset)
at SmartStore.Web.Framework.Theming.Assets.AssetTranslator1.TranslateInternal(IAsset asset) in C:\Users\xxxx\Documents\GitHub\RMStore\src\Presentation\SmartStore.Web.Framework\Theming\Assets\AssetTranslator.cs:line 77 at SmartStore.Web.Framework.Theming.Assets.AssetTranslator1.Translate(IAsset asset) in C:\Users\xxxx\Documents\GitHub\RMStore\src\Presentation\SmartStore.Web.Framework\Theming\Assets\AssetTranslator.cs:line 57
at BundleTransformer.Core.HttpHandlers.AssetHandlerBase.InnerTranslateAsset[T](String translatorName, IAsset asset, ITransformer transformer, Boolean isDebugMode)
at SmartStore.Web.Framework.Theming.SassCssHttpHandler.TranslateAssetCore(IAsset asset, ITransformer transformer, Boolean isDebugMode) in C:\Users\xxxx\Documents\GitHub\RMStore\src\Presentation\SmartStore.Web.Framework\Theming\CssHttpHandler.cs:line 22
at SmartStore.Web.Framework.Theming.CssHttpHandlerBase.TranslateAsset(IAsset asset, ITransformer transformer, Boolean isDebugMode) in C:\Users\xxxx\Documents\GitHub\RMStore\src\Presentation\SmartStore.Web.Framework\Theming\CssHttpHandler.cs:line 126
at BundleTransformer.Core.HttpHandlers.AssetHandlerBase.ProcessAsset(String assetVirtualPath, String bundleVirtualPath)
at BundleTransformer.Core.HttpHandlers.AssetHandlerBase.GetProcessedAssetContent(String assetVirtualPath, String bundleVirtualPath)
at BundleTransformer.Core.HttpHandlers.AssetHandlerBase.ProcessRequest(HttpContextBase context)

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

Update a BundleTransformer library.

from libsasshost.

taranjitbawa avatar taranjitbawa commented on June 20, 2024

Just did. Same access denied error.


Server Error in '/SmartStore.Web' Application.
Unable to load DLL 'libsass': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.DllNotFoundException: Unable to load DLL 'libsass': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[DllNotFoundException: Unable to load DLL 'libsass': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))]
   LibSassHost.Internal.Native.Sass_Api.libsass_version() +0
   LibSassHost.SassCompiler.Initialize() +99

[SassCompilerLoadException: During loading of Sass compiler error has occurred. Most likely it happened, because the 'libsass.dll' assembly or one of its dependencies was not found. Try to install the LibSassHost.Native.win-x64 package via NuGet.]
   LibSassHost.SassCompiler.Initialize() +217
   LibSassHost.SassCompiler.InnerCompile(String content, Boolean indentedSyntax, String inputPath, String outputPath, String sourceMapPath, CompilationOptions options) +44
   LibSassHost.SassCompiler.Compile(String content, String inputPath, String outputPath, String sourceMapPath, CompilationOptions options) +109
   BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.InnerTranslate(IAsset asset, CompilationOptions sassOptions, Boolean enableNativeMinification) +198

[AssetTranslationException: During translation of SCSS code, readed from the file '/SmartStore.Web/Administration/Content/theme.scss', to CSS code error has occurred.
See more details:

During loading of Sass compiler error has occurred. Most likely it happened, because the 'libsass.dll' assembly or one of its dependencies was not found. Try to install the LibSassHost.Native.win-x64 package via NuGet.]
   BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.InnerTranslate(IAsset asset, CompilationOptions sassOptions, Boolean enableNativeMinification) +853
   BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.Translate(IAsset asset) +61
   BundleTransformer.Core.HttpHandlers.AssetHandlerBase.InnerTranslateAsset(String translatorName, IAsset asset, ITransformer transformer, Boolean isDebugMode) +135
   BundleTransformer.SassAndScss.HttpHandlers.SassAndScssAssetHandler.TranslateAsset(IAsset asset, ITransformer transformer, Boolean isDebugMode) +49
   BundleTransformer.Core.HttpHandlers.AssetHandlerBase.ProcessAsset(String assetVirtualPath, String bundleVirtualPath) +271
   BundleTransformer.Core.HttpHandlers.AssetHandlerBase.GetProcessedAssetContent(String assetVirtualPath, String bundleVirtualPath) +310
   BundleTransformer.Core.HttpHandlers.AssetHandlerBase.ProcessRequest(HttpContextBase context) +312

[HttpException (0x80004005): During translation of SCSS code, readed from the file '/SmartStore.Web/Administration/Content/theme.scss', to CSS code error has occurred.
See more details:

During loading of Sass compiler error has occurred. Most likely it happened, because the 'libsass.dll' assembly or one of its dependencies was not found. Try to install the LibSassHost.Native.win-x64 package via NuGet.]
   BundleTransformer.Core.HttpHandlers.AssetHandlerBase.ProcessRequest(HttpContextBase context) +1310
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +872
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94


from libsasshost.

taranjitbawa avatar taranjitbawa commented on June 20, 2024

So all my Libsass and BundleTramsforer libraries are on the latest now.

from libsasshost.

taranjitbawa avatar taranjitbawa commented on June 20, 2024

Do you know if libsass.dll and libsasshost.dll are different from each other?

As in my bin directly i have libsassHost but no libsass.dll

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

Which BundleTransformer and LibSassHost versions were used initially?

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

As in my bin directly i have libsassHost but no libsass.dll

You need to install packages with native assemblies (see the documentation).

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

libsass assembly must be located in the x86 and x64 subdirectories.

from libsasshost.

taranjitbawa avatar taranjitbawa commented on June 20, 2024

Yes so i have LibSassHost.dll Bin directrory
And Libsass.dll in x86 and x64.

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

Everything should work.

from libsasshost.

taranjitbawa avatar taranjitbawa commented on June 20, 2024

it only works if i use iis express

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

Which version of the LibSassHost library do you use for IIS Express?

from libsasshost.

taranjitbawa avatar taranjitbawa commented on June 20, 2024

1.3.2

from libsasshost.

Taritsyn avatar Taritsyn commented on June 20, 2024

Unable to load DLL 'libsass': Access is denied.

You will have to deal with incorrect access settings on the server yourself.

from libsasshost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.