Copied to clipboard

Flag this post as spam?

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


  • Bryan Drenner 37 posts 59 karma points
    Mar 16, 2011 @ 16:59
    Bryan Drenner
    0

    JS and CSS not being served after upgrading to Umbraco 4.7

    After copying the Umbraco 4.7 files into my webroot, the "Umbraco 4.7.0 Configuration Wizard" appears, but it is unstyled.  When I try to load the CSS (or JS) files referenced in the page source, I get an error: "The page cannot be displayed because an internal server error has occurred."

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 16, 2011 @ 19:06
    Jan Skovgaard
    0

    Hi Bryan

    Is this happening in the backoffice? What version of Umbraco did you upgrade from?

    /Jan

  • Bryan Drenner 37 posts 59 karma points
    Mar 16, 2011 @ 19:18
    Bryan Drenner
    0

    It's happening on the install pages.  We upgraded from 4.5.2.  To be sure, we got 4.5.2 working on this server a couple months ago, and it sat for a while without any content, so I deleted the directories to start from scratch with 4.7.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 16, 2011 @ 19:29
    Jan Skovgaard
    0

    Hi Bryan

    Ok...and the app pool is running integrated mode?

    /Jan

  • Bryan Drenner 37 posts 59 karma points
    Mar 16, 2011 @ 19:36
    Bryan Drenner
    0

    It is running integrated mode.  I should mention that this is also a medium trust environment.

    I just recopied all the files, and the problem persists.  If I delete web.config, the site serves the CSS and JS files, so the problem seems to be an incompatible entry in web.config.

  • Bryan Drenner 37 posts 59 karma points
    Mar 16, 2011 @ 22:21
    Bryan Drenner
    1

    Solved! By a happy accident, I discovered that the Umbraco 4.7.0 Configuration Wizard would display properly if I replaced the Umbraco 4.7 web.config file with the web.config file from Umbraco 4.5.2. So, I added in each new section, bit-by-bit, until I found the culprit

    The following lines in Umbraco 4.7's web.config file cause JavaScript, CSS, and images not to be served properly, at least from the Rackspace "cloud" hosting service:

    <!-- Adobe AIR mime type -->
    <staticContent>
      <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package+zip" />
    </staticContent>
  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 16, 2011 @ 22:23
    Jan Skovgaard
    0

    Hi Bryan

    Wow...that's a weird one...I don't get how a missing .air mime-type can make the instance fail...but hey, you got it sorted and things are good :-)

    /Jan

  • Bryan Drenner 37 posts 59 karma points
    Mar 16, 2011 @ 22:44
    Bryan Drenner
    0

    It is a strange one!  But to be clear, I had to leave the "Adobe AIR mime type" section out in order to get it to work.  The site only has problems when those lines are included.  I hope Adobe AIR is not central to the functioning of this latest version of Umbraco.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 16, 2011 @ 22:48
    Jan Skovgaard
    0

    Aaah, ok - well Umbrao does not rely on air and I don't think that it ever will. But still a bit strange it does not work when that line is in the web.config though...

    /Jan

  • devtage 12 posts 32 karma points
    Apr 18, 2011 @ 05:34
    devtage
    0

    Omg, you just saved me sleepless night!!! It actually worked. I host my sites on rackspace as well and i have had a week of sleepless night trying to get this to work.

    The solution (commenting out the staticContent section) definitely worked on rackspace hosting.  Thanks man!

    GB.

     

     

     

  • devtage 12 posts 32 karma points
    Apr 18, 2011 @ 05:49
    devtage
    0

    As a followup, my contents, settings and developer items  under the Admin are not displaying and i am getting an xlt error on the main site. Would you happen to have a solutions ?

    Thanks a bunch!

    GB.

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Jul 18, 2011 @ 16:19
    Jeavon Leopold
    0

    Wow, just came across this issue! 24 hours later, I have discovered that the nightmare only happens if you have both the staticContent/mimeMap MIME type definition in your web.config and you have the .air MIME type setup globally in IIS already!

    If anyone else experiences this, either comment the staticContent mimeMap or delete the default MIME type in IIS to resolve.

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Jul 18, 2011 @ 17:28
    Jeavon Leopold
    0

    Further to this, the best solution is to add a remove before the mimeMap in the web.config, then everything is happy!

    <staticContent>
    <remove fileExtension=".air" />
    <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package+zip" />
    </staticContent>

  • James Diacono 16 posts 435 karma points
    Jun 27, 2012 @ 06:45
    James Diacono
    0

    Thanks guys, this thread saved much time.

  • Dallas 133 posts 405 karma points
    Dec 10, 2015 @ 22:39
    Dallas
    0

    We got caught out by this same issue when moving an older site to a new server. In our case the mimeMap extension was .woff. The woff font mime type had been added so the font files could be served but newer versions of Windows Server have this mimeMap entry added by default.

    The error is quite obscure and nothing detailed is logged anywhere so this thread saved the day.

    The best practice is to always add a remove element in the web.config before adding a mimeMap extension.

    Dallas

Please Sign in or register to post replies

Write your reply to:

Draft