Support

Kom i kontakt med vår kundtjänst, lär dig allt via vår SDK eller ladda ner den senaste uppdateringen.

CSS file not found by IIS on development server

2010-09-23 11:36:00 Olaf

I have a Lemoon site (developed by someone else) that have a -tag that is supposed to load a CSS file.

But it doesn't. The path has a slash at the very beginning, and that seems to be the problem. If I remove the leading slash from within firebug the CSS is loaded.

But since the live site is working and nothing has been changed in the source, it has to be the ISS/web setup on our development server that differs from the place where it was hosted.

Is there special requirements as where a Lemoon site can reside on a server? Real web or Virtual? Host header/port?

All replies

  • 2010-09-23 13:02:56 Magnus Krona

    If you have set up the web site as a root site, then a leading slash should work. If it's set up as a virual directory, then of course, it won't. You could always use ResolveUrl() which works in all cases.

    href="<% = ResolveUrl("~/styles/main.css") %>"

    lemoon does not require anything special and works in any environment asked for above.

  • 2010-09-23 14:11:04 Olaf

    Ok, I guess that means that the live site is setup as a root site.

    It´s just that when I look at the code there is are some paths not beginning with a slash. But that probably is old stuff left in the code then.