Search code examples
asp.netweb-configepiserver

EPIserver no CSS for the UI Admin section


After moving a EPI6 site to my local machine and reconfiguring it for IIS7.5 (instead of IIS6) i have a problem.

The UI Admin/Edit backend has no CSS. I suspected this was due to the virtual path mapping and i found that they where all mapped to %ProgramFiles% but on my local machine EPI is installed on %ProgramFiles(86)%. So i changed it and made sure all physical paths worked. They did.

So i felt smart and expected the CSS to load properly but no change happened.

I have tried ctrl F5 to see if its a caching problem, i have restarted the IISExpress. But still no CSS.

Any tips on something i might have forgotten?


Solution

  • I solved this. It was not a problem of rights, but rather a configuration error. When uppgrading fom using IIS6 to IIS7.5 i forgot changing in the Web.Config:

    IIS6 version

      <location path="App_Themes/Default" />
    

    to:

    IIS7.5 version

     <location path="App_Themes/Default">
            <system.webServer>
                <handlers>
                    <clear />
                    <add name="wildcard" path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer" />
                </handlers>
            </system.webServer>
        </location>