Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Oct 01, 2013 @ 16:28
    Anthony Candaele
    0

    no styles rendered

    Hi,

    I just installed Optimus.Core 1.0 on my Umbraco 6.1.5 install

    I created a bundle with the Create Script/Css bundle function on my Master View.

    This added this line in my Master View:

      @Styles.Render("~/bundles/styles") 
    

    But when I visit the page, the styles in the bundle are not rendered.

    Am I doing something wrong?

    greetings,

    Anthony

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 01, 2013 @ 16:37
    Tim Geyssens
    1

    Nope that should be it, are you sure that's the name of your bundle?

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 01, 2013 @ 16:39
    Anthony Candaele
    0

    yes, when I look in the rendered page source code, I see this reference to the styles bundle:

    <link href="/bundles/styles" rel="stylesheet"/>
    
  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 01, 2013 @ 16:42
    Tim Geyssens
    1

    Ok seems good then, and what happens if you request the path /bundles/styles

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 01, 2013 @ 16:44
    Anthony Candaele
    0

    Maybe the problem has something to do with my local webserver (IIS 7.5) ?

    the application pool for the webfolder runs on .NET v4.0

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 01, 2013 @ 16:52
    Anthony Candaele
    0

    you mean what happens if I enter http://localhost/bundles/styles in the browser?

    then I'm getting a 'link doesn't work' error in Chrome

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 01, 2013 @ 16:54
    Tim Geyssens
    1

    Yup, can you see if umbracoReservedPaths in web.config contains ~/bundles/

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 01, 2013 @ 16:55
    Anthony Candaele
    0

    no, it doesn't

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 01, 2013 @ 17:03
    Tim Geyssens
    0

    Ok it needs that so you can try added it, should look like the value from

    https://github.com/TimGeyssens/BundlingAndMinificationForTheMasses/blob/master/TestSite/Web.config

    So

     <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/bundles/" />
    
  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 01, 2013 @ 18:14
    Tim Geyssens
    0

    So does it work with that in place?

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 02, 2013 @ 08:44
    Anthony Candaele
    0

    Hi Tim,

    Sorry, I was out of office. I overlooked the ~/bundles value in the umbracoReservedPaths key. It is there. So that is not the problem.

    To give you and idea of my development environment:

    Umbraco 6.1.5 OS: Windows 7 Professional Webserver: IIS 7.5 Installed .NET version: .NET 4.0 ASP.NET 4.5 is installed, but under my application pool in IIS I only see v4.0 (which is normal I heard, as .NET 4.5 is an in place upgrade) Database: Sql Server 2012

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 02, 2013 @ 08:55
    Anthony Candaele
    0

    I notice the new bundleTransformer node in web.config. Mine looks like this:

    <bundleTransformer>
    <core>
      <css>
        <minifiers>
          <add name="NullMinifier" type="BundleTransformer.Core.Minifiers.NullMinifier, BundleTransformer.Core" />
        </minifiers>
        <translators>
          <add name="NullTranslator" type="BundleTransformer.Core.Translators.NullTranslator, BundleTransformer.Core" enabled="false" />
        </translators>
      </css>
      <js>
        <minifiers>
          <add name="NullMinifier" type="BundleTransformer.Core.Minifiers.NullMinifier, BundleTransformer.Core" />
        </minifiers>
        <translators>
          <add name="NullTranslator" type="BundleTransformer.Core.Translators.NullTranslator, BundleTransformer.Core" enabled="false" />
        </translators>
      </js>
    </core>
    

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 02, 2013 @ 09:51
    Tim Geyssens
    1

    Yup looks good, any chance I can have a look at the site, you can mail details to [email protected]

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 02, 2013 @ 10:30
    Anthony Candaele
    0

    Thanks Tim,

    In the meantime, I installed Optimus.Core 1.0 on the Umbraco website on the testserver, and also there it's not working.

    I have created an administrator account for you, and sent you and email.

    greetings,

    Anthony

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 02, 2013 @ 10:58
    Tim Geyssens
    1

    Looks like it is trying to find a physical file, getting the same on a fresh 6.1.6 install so looks like it's a bug, will look into fix

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 10, 2013 @ 10:58
    Anthony Candaele
    0

    Hi Tim,

    Jeavon Leopold found there is an issue with WebGrease.dll in Umbraco 6.1.5. It makes the Razor dynamic .Any() method crash.

    http://our.umbraco.org/forum/developers/razor/43030-sitemap?p=2 (last post on the page)

    He found that upgrading WebGrease.dll from version v1.3.0 to v1.5.2 fixed the issue.

    As the Optimus package is using WebGrease.dll, this might explain the issue with Optimus.Core 1.0 in Umbraco 6.1.5

    greetings,

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 16, 2013 @ 08:53
    Anthony Candaele
    0

    @Tim, is there a fix for this issue yet? Can I just install it of my existing intallation of Optimus or do I need to uninstall Optimus first?

    greetings,

    Anthony

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 16, 2013 @ 08:58
    Tim Geyssens
    0

    Think I know what is wrong

    Did you do this step:

    There is one manual change that needs to be done after installation

    Look for

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 16, 2013 @ 09:04
    Anthony Candaele
    0

    you mean empty attributes in the templates?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 16, 2013 @ 09:20
    Tim Geyssens
    100

    No sorry seems like part of the post got eaten look at details here

    http://our.umbraco.org/projects/developer-tools/optimus

    It's in the web.config look for xmlns="" in it and remove those empty attributes (should be in there twice)

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 16, 2013 @ 09:45
    Anthony Candaele
    0

    Hi Tim, it's working now :)

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 16, 2013 @ 09:45
    Tim Geyssens
    0

    Ok cool :) yeah it's on installation issue I need to fix so that it doesn't add the empty attribtutes :)

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 16, 2013 @ 09:57
    Anthony Candaele
    0

    oops, was celebrating to early. Must have been looking at a cached version of my homepage, because now the styles aren't rendered anymore :(

    Where can I verify that the bundles have been created?

  • 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