<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - Publishing</title><link>http://forums.iis.net/1045.aspx</link><description>Discussion around anything related to publishing content on the IIS 7 web platform</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Default Document not showing CSS</title><link>http://forums.iis.net/thread/1906655.aspx</link><pubDate>Thu, 11 Jun 2009 17:53:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906655</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906655.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1906655</wfw:commentRss><description>&lt;p&gt;Note that the browser does not know that the your default document is in a subdirectory - so if you are using relative links to your css, it would have to be stylesheets/stylesheet.css (and not ../stylesheet/stylesheet.css)&lt;/p&gt;</description></item><item><title>Re: Default Document not showing CSS</title><link>http://forums.iis.net/thread/1906604.aspx</link><pubDate>Thu, 11 Jun 2009 12:23:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906604</guid><dc:creator>jeff@zina.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906604.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1906604</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;BullionZA:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;&amp;nbsp;If I browse to the actual file in its sub directory, the CSS is shown just fine. I dont understand why the &amp;quot;default document&amp;quot; does not show the CSS although in essence it is the exact same file.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;If i change the default document in the web.config to a file under the main directory (and not in a sub directory), the CSS is displayed just fine. &lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Sounds like a classic error of relative file links pointing to the wrong folder.&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;</description></item><item><title>Default Document not showing CSS</title><link>http://forums.iis.net/thread/1906581.aspx</link><pubDate>Thu, 11 Jun 2009 10:58:23 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906581</guid><dc:creator>BullionZA</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906581.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1906581</wfw:commentRss><description>&lt;p&gt;Hi all...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am new to IIS 7.0 and can not understand why when my ASP.Net web site is published to the web server, using IIS 7.0, the default document specified in the web.config file is shown without any of the style set up in the CSS file.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have a sub directory under my main web site directory called webforms where the default document is located. I have another sub directory under the main web site directory called stylesheets where the css files are located.&lt;/p&gt;&lt;p&gt;&amp;nbsp;If I browse to the actual file in its sub directory, the CSS is shown just fine. I dont understand why the &amp;quot;default document&amp;quot; does not show the CSS although in essence it is the exact same file.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If i change the default document in the web.config to a file under the main directory (and not in a sub directory), the CSS is displayed just fine. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;File structure is as follows:&lt;/p&gt;&lt;p&gt;-WEBSITE&lt;/p&gt;&lt;p&gt;---------stylesheets&lt;/p&gt;&lt;p&gt;-------------------- stylsheet.css&lt;/p&gt;&lt;p&gt;---------webforms&lt;/p&gt;&lt;p&gt;--------------------defaultpage.aspx&lt;/p&gt;</description></item></channel></rss>