Comments (11)
Hello, jt3432!
Try to reinstall the Visual C++ Redistributable Packages for Visual Studio 2013.
from libsasshost.
Taritsyn:
Thanks for getting back to me so fast. I uninstalled Visual C++ Redistributable Packages for Visual Studio 2013, rebooted, reinstalled Visual C++ Redistributable Packages for Visual Studio 2013, rebooted and got the same error. Any chance you have any more suggestions?
from libsasshost.
First of all, check existence of LibSassHost.Native-32.dll
and LibSassHost.Native-64.dll
files in bin/LibSassHost.Native
(or bin/Release/LibSassHost.Native
) directory. If these files exist, then problem is at the level of the operating system.
Have already been similar cases due to the fact, that the operating system was “dirty”. Try to check your work on another computer or virtual machine.
from libsasshost.
Also I recommend to see “Failed to load C module in new appdomain” discussion on Stack Overflow.
from libsasshost.
I have seen that discussion already about the appdomain and that did not work to resolve the issue either. In fact the config that is suggested to add was already in place. Even tried to removing it with the same issue happening. Both architectures of LibSassHost.Navtive were in the bin, even tried to move them to the root of the bin and delete one of them to see if they were conflicting for some reason, no luck. Obviously there is some configuration that I am missing but I have not idea what it could be. I did recently reload my PC so I might be missing some other library or something. I also though of trying the code on a different machine. Unfortunately, I do not have any more time to figure it out right now and have had to go in another directions. Wish I could use your library, I really liked your implementation a lot. Thanks for the help and code anyway. :-)
from libsasshost.
... even tried to move them to the root of the bin ...
It is better not to do so.
from libsasshost.
I have the same problem - worked fine on a pet asp.net project, but after moving over into a bigger project (more than one project DLL's? or async) i had the same problem until i added using (var compiler = new LibSassHost.SassCompiler()) {}
to the application start. After that, the per requests worked fine.
from libsasshost.
@AndersMad Try version 1.0.0 Alpha 1, there are a lot has changed.
from libsasshost.
@Taritsyn confirmed - it works now with out the "hack", thanks!.. fyi @jt3432
from libsasshost.
@jt3432 @AndersMad Try version 1.0.0.
from libsasshost.
Thanks for the update.
from libsasshost.
Related Issues (20)
- 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
- Native Assembly for Windows ARM HOT 3
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.