+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Big bits of my Website are missing in IE & Safari

Big bits of my Website are missing in IE & Safari

7 posts, 0 answered
  1. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    09 Jun 2012
    Link to this post
    I've created a new project from scratch and have added a theme to it.

    I've been developing the theme viewing the site in Chrome.

    I had a look at it in IE9 and Safari and a number of sections were missing.

    A little investigation in IE and I see a warning in the developer tools console....

    SEC7113: CSS was ignored due to mime type mismatch
    layout_transformations.css

    Hovering over the link for the .css file points to /Sitefinity/Public/ResponsiveDesign/layout_transformations.css

    Now, I don't have a /Sitefinity/Public/ResponsiveDesign/ 
    folder so it's hardly surprising that it's complaining.

    What do I have to do to get this to work in browsers other than Chrome?


  2. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    09 Jun 2012
    Link to this post
    I guess I should learn not stop stop for meals!

    I closed down my machine for a break. Came back and started up my project again and no it doesn't work in Chrome either. The console message is similar ...

    Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://localhost:60876/Sitefinity/Public/ResponsiveDesign/layout_transformations.css". Default.aspx:6

    Any one got any clues?

    -- 
    Stuart
  3. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    09 Jun 2012
    Link to this post
    OK.

    I'm guessing, from the little I've been able to discover, that the layout_transformations.css file comes from Sitefinity itself. I assume that this means that it injected somehow.

    Looking at the network stats I can see that whilst the request for this file returns 200 the response size is 0b.

    -- 
    Stuart
  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    10 Jun 2012
    Link to this post
    Yeah, Its from the Mobile Module...and I think (hope) its a bug that it comes down with no rules defined...

    Weird though that it transfers with text\plain....
  5. Jules
    Jules avatar
    65 posts
    Registered:
    20 Jul 2005
    19 Jun 2012
    Link to this post
    I'm running into this problem too. I'm also missing a number of CSS and js files that are associated with a user control I've created. Any ideas? This happened for me a few days after I updated a site from SF 4.x to the most recent version of SF5.
  6. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    19 Jun 2012
    Link to this post
    @Julia care to post the live URL or code for the control so we can see how it's linking the bits in?
  7. Jules
    Jules avatar
    65 posts
    Registered:
    20 Jul 2005
    19 Jun 2012
    Link to this post
    I've resolved this. I forgot that SF5 is quirky and needs an extra line of code to recognize CSS, javascript and image files that are static. (That I need to remember this line to all my web.configs is annoying, btw, in case anyone from Telerik is listening.)

    The fix for me was adding this line to the httphandlers in my web.config:
    <!-- special addition to fix SF 5 glitch serving static files-->
    <add verb="*" path="*.css,*.js,*.jpg,*.jpeg,*.gif,*.png,*.swf" type="System.Web.StaticFileHandler" />

    The site in question is http://imh.utmb.edu.
7 posts, 0 answered