Comments (22)
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.
@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.
What version of ASP.NET you use?
from libsasshost.
Try the method from the following comment.
from libsasshost.
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.
Thanks for the update.
from libsasshost.
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.
Hello, Taranjit!
What version of the LibSassHost library are you using?
from libsasshost.
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.AssetTranslator
1.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.
Update a BundleTransformer library.
from libsasshost.
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.
So all my Libsass and BundleTramsforer libraries are on the latest now.
from libsasshost.
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.
Which BundleTransformer and LibSassHost versions were used initially?
from libsasshost.
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.
libsass
assembly must be located in the x86
and x64
subdirectories.
from libsasshost.
Yes so i have LibSassHost.dll Bin directrory
And Libsass.dll in x86 and x64.
from libsasshost.
Everything should work.
from libsasshost.
it only works if i use iis express
from libsasshost.
Which version of the LibSassHost library do you use for IIS Express?
from libsasshost.
1.3.2
from libsasshost.
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)
- When used inside a Microsoft.Build.Framework.ITask, the whole process crashes if there's an SCSS error HOT 10
- request: non-static file manager HOT 6
- Unable to load DLL 'libsass' on Windows Server 2008 R2 HOT 2
- How to @import partials HOT 1
- SassСompilationException contains cyrillic character HOT 4
- [BUG] Upgrade to v1.3.1 adds `/c/` to paths HOT 7
- Combining a string of sass with an scss file HOT 5
- `@use` rule doesn't compile HOT 6
- application o virtual directory HOT 2
- On azure webapp getting "An attempt was made to load a program with an incorrect format" HOT 2
- Error: File to import not found or unreadable HOT 23
- LibSassBuilder HOT 2
- Support for Memory<char> as parameter and result CSS
- Sass Modules Support HOT 8
- .NET 6 on Apple Silicon HOT 7
- How to utilize with Blazor? HOT 2
- Updating System.Buffers in .Net Framework project breaks dll-mapping to libsasshost version HOT 2
- Calling from Powershell, cannot load dependent assemblies HOT 4
- Variables are not compiled when scss is compiled HOT 3
- The type initializer for 'LibSassHost.SassCompiler' threw an exception HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsasshost.