Copied to clipboard

Flag this post as spam?

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


  • Brad Richardson 22 posts 42 karma points
    Jul 23, 2013 @ 20:53
    Brad Richardson
    0

    Error Compiling Dynamic Stylesheet

    First off, I want to echo the sentiment that others have shown you for this package.  Thank you very much for putting this together.  Now on to the issue at hand.

    I have installed Optimus.Core, Optimus.Providers.Sass and Optimus.Providers.CoffeeScript on Umbraco 6.1.2.  I mainly was interested in this package because I am attempting to learn SASS and I was overjoyed to discover this package was available.  Upon creating my first .scss file, putting some information into it and hitting save, I get this error:

    Could not load file or assembly 'System.Web.Optimization, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    I looked into the web.config to find that the System.Web.Optimization assembly had been referenced but that the version number was 1.1.0.0.  I left the old version at that number and set the new version at 1.0.0.0 thinking that I could redirect it, but that didn't work.  It still won't let me compile the .scss sheet.

    I have one more question after getting this one answered:  Where does the compiled stylesheet go?  Does it go into the css folder in the root folder?

    Thanks for help ahead of time!
    Brad

  • Brad Richardson 22 posts 42 karma points
    Jul 23, 2013 @ 23:49
    Brad Richardson
    0

    I would also love to know how you can bring in other frameworks such as Compass and ZURB-Foundation.

  • Janae Cram 55 posts 385 karma points MVP 4x c-trib
    Jul 26, 2013 @ 00:00
    Janae Cram
    0

    We were able to solve this by commenting out the following lines of code in the web.config file in the root:

    <namespaces>
    <add namespace="System.Web.Optimization" />
    </namespaces>

    Try that?

  • Brad Richardson 22 posts 42 karma points
    Jul 26, 2013 @ 02:19
    Brad Richardson
    0

    Thank you for your attention to this, but that didn't fix the issue.  I am thinking that it might be something from the System.Web.Optimization call in the Assemblies.

    <dependentAssembly xmlns="">
    <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-1.1.0.0" newVersion="1.0.0.0" />
    </dependentAssembly>

    Like I said, I changed it to 1.0.0.0 in the newVersion call to possibly remedy the situation, but that didn't help either.

  • Chriztian Steinmeier 2726 posts 8320 karma points MVP 4x admin c-trib
    Jul 26, 2013 @ 07:57
    Chriztian Steinmeier
    0

    Hi Brad,

    I have no expertise at all in fixing "DLL-Hell", but seeing a redirect from anything between 0.0.0.0 to 1.1.0.0 onto 1.0.0.0 makes my alarm clocks ring... in other words: the newVersion is within the range of those listed in oldVersion, which I can't see as something that would work, right? Is that usually possible?

    /Chriztian

  • Brad Richardson 22 posts 42 karma points
    Jul 26, 2013 @ 21:26
    Brad Richardson
    0

    You are right Chriztian!  It is "DLL-Hell"!  I had the newVersion set to its default 1.1.0.0 but it did not work with that setting.  There was another forum post (and you will have to forgive me for not being able to find it again) that said that the newVersion setting is a redirect and can be used to push in the proper version.  I was skeptical and for good reason.  So I was trying to use the newVersion parameter to fulfull that.

    Any further ideas?  I would love to be able to use this package.

  • Brad Richardson 22 posts 42 karma points
    Jul 29, 2013 @ 18:38
    Brad Richardson
    0

    I have another quick question about this package.  Do you need to be running Umbraco in MVC mode to use it?  I created a bundle and received an error about the bundle call.  I was looking at the tutorial videos and they were done using an instance of Umbraco that was running in MVC mode.  I am currently using Umbraco in webforms mode.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jul 31, 2013 @ 13:15
    Tim Geyssens
    0

    Like it says on the project page after install you'll need to

    Look for

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jul 31, 2013 @ 13:16
    Tim Geyssens
    0

    And you don't need to be running in MVC mode it also works in Webforms mode

    And the compiled stylesheet will go in the /css dir :)

  • Brad Richardson 22 posts 42 karma points
    Jul 31, 2013 @ 23:59
    Brad Richardson
    0

    Thanks for responding Tim. I hope that you are doing well and thank you for creating this package.

    I have another question:  You know how you can create partials, a .scss file that has an "_" in front of the name (ex: _colors.scss) and it will not compile.  That way, you don't have all of your files compiling, just the main one.  Does that still work for this package?

  • Brad Richardson 22 posts 42 karma points
    Aug 01, 2013 @ 00:25
    Brad Richardson
    0

    You might want to work on the compiling feature a little.  I am trying to compile my stylesheets, and have Foundation 4 (the minimalized version) in there.  It is taking a LONG time to compile.  I have been waiting on it for the last 45 minutes.

  • Brad Richardson 22 posts 42 karma points
    Aug 01, 2013 @ 01:46
    Brad Richardson
    0

    I have ditched the SASS compiling feature. It failed to compile and crashed my server.

    Moving on, I have put in a script bundle into my webforms site and I got this error:

    What do you think?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Aug 01, 2013 @ 10:42
    Tim Geyssens
    0

    @Brad looks like it can't find the namespace

    Try adding

    in your web.config

    to the

    Cheers, Tim

  • Brad Richardson 22 posts 42 karma points
    Aug 01, 2013 @ 16:08
    Brad Richardson
    0

    Hey Tim,

    You lost me buddy.  I don't think that your answer went through as you expected.  I am kind of following you.  Can you send me the answer again?

    Thanks and Regards

  • Brad Richardson 22 posts 42 karma points
    Aug 01, 2013 @ 16:48
    Brad Richardson
    0

    I see what you are talking about now Tim.  When I was having problems with the package early on, several suggestions were to comment out a part of the web.config file.  So I simply just uncommented the part and I am good to go.  Here is the part that I am referring to:

    <namespaces>
        <add namespace="System.Web.Optimization" />
    </namespaces>
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies