Big bits of my Website are missing in IE & Safari

Posted by Community Admin on 03-Aug-2018 20:04

Big bits of my Website are missing in IE & Safari

All Replies

Posted by Community Admin on 09-Jun-2012 00:00

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?


Posted by Community Admin on 09-Jun-2012 00:00

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

Posted by Community Admin on 09-Jun-2012 00:00

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

Posted by Community Admin on 10-Jun-2012 00:00

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....

Posted by Community Admin on 19-Jun-2012 00:00

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.

Posted by Community Admin on 19-Jun-2012 00:00

@Julia care to post the live URL or code for the control so we can see how it's linking the bits in?

Posted by Community Admin on 19-Jun-2012 00:00

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.

This thread is closed