This project is read-only.

css file path can't solve

Topics: ASP.NET 2.0, Controls, Themes
Jan 6, 2008 at 2:52 AM
Edited Jan 6, 2008 at 2:54 AM
Hi, I deployed blogengine in my site sub directory: wwwroot/blog, it can show the post, but the page is unformatted, it seem s that css file have lost.

ZuHong Automation Blog:
could you help me solve this problem.
Jan 6, 2008 at 10:46 AM
Edited Jan 6, 2008 at 10:51 AM
Hi Andy, please verify this key's value in the AppSettings section: "Blogengine.VirtualPath" in your Web.config

Giving your subfolder /blog/, the value should be "~/blog/" so the web.config includes:

<add key="BlogEngine.FileExtension" value=".aspx" />
<add key="BlogEngine.VirtualPath" value="~/blog/" />

BE.Net can't retrieve your CSS files when this key is not probably configured.
Else, try disabling the "trim stylesheets" option via the Admin/Settings interface and see if that solves the issue.
Jan 6, 2008 at 12:57 PM
Hi Mikev,

Pretty thanks for your response.

I have solve this issue, just disabled the "trim stylesheets" option via the Admin/Settings interface as your advice. but update the virtual path, because I create a application for sub domain blog(/Blog/), so update key {<add key="BlogEngine.VirtualPath" value="~/blog/" /> } can't solve the issue, but throw a new exception.