Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Radick 4 posts 74 karma points
    Jan 26, 2016 @ 20:38
    David Radick
    0

    I'm getting an error when loading my umbraco instance after installing this package. I'm being told the assembly LibSass.x64 or one of its dependencies cannot be loaded.

    As far as I can tell, all of my configs are set up correctly. Any clues or fixes I can make on my end?

    Load Trace:

        === Pre-bind state information ===
    LOG: DisplayName = LibSass.x64
     (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: LibSass.x64 | Domain ID: 28
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Projects/Inside.CMS.Umbraco/
    LOG: Initial PrivatePath = C:\Projects\Inside.CMS.Umbraco\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Projects\Inside.CMS.Umbraco\web.config
    LOG: Using host configuration file: X:\My Documents\IISExpress\config\aspnet.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Users/dradick/AppData/Local/Temp/Temporary ASP.NET Files/vs/f2fe2845/d96f9ef3/LibSass.x64.DLL.
    LOG: Attempting download of new URL file:///C:/Users/dradick/AppData/Local/Temp/Temporary ASP.NET Files/vs/f2fe2845/d96f9ef3/LibSass.x64/LibSass.x64.DLL.
    LOG: Attempting download of new URL file:///C:/Projects/Inside.CMS.Umbraco/bin/LibSass.x64.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    

    Stack Trace:

    [BadImageFormatException: Could not load file or assembly 'LibSass.x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
       System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
       System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +36
       System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +21
       System.Reflection.Assembly.Load(String assemblyString) +28
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38
    
    [ConfigurationErrorsException: Could not load file or assembly 'LibSass.x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +738
       System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +217
       System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
       System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
       System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +92
       System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +290
       System.Web.Compilation.BuildManager.ExecutePreAppStart() +157
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +531
    
    [HttpException (0x80004005): Could not load file or assembly 'LibSass.x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9947380
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261
    
  • Barry Fogarty 493 posts 1129 karma points
    Jan 26, 2016 @ 23:40
    Barry Fogarty
    0

    Hi David,

    This thread might help: https://github.com/JimBobSquarePants/Cruncher/issues/28 - basically you should check that you have the Visual C++ Redistributable installed.

    Hope this helps

  • Jason 113 posts 627 karma points
    Jan 27, 2016 @ 14:57
    Jason
    0

    Barry is correct, this issue happens when the C++ Redistributable is not installed. I ran into this just yesterday when moving a site to a new server. That redistributable is one of those things you would think was installed by default on windows, but I guess there are reasons why you might not want that. Let us know if installing the redistributable worked and mark Barry's answer as correct.

    I update the project page with a note that the C++ Redistributable was required.

Please Sign in or register to post replies

Write your reply to:

Draft