Thanks for your reply Jerry,
Yes, the further information you provided is very important. That remind me
of the potentitial cause from forms authentication protection on pages or
resource in the application.
So you're using Forms authentication, and by default deny user="?",
correct? Is the application hosted in IIS on both machine? Normally asp.net
forms authenticaction won't affect those static files(such as css ,
jscript...) because only those ASP.NET documents(aspx, ascx ..) will be
forwarded to ASP.NET runtime for processing. However, you can check on the
server to see whether the IIS extention mapping has bee changed that those
static files will also be processed by ASP.NET runtime.
For testing , you can also first turn off forms authentication protection
on all page(set allow users="*") to see whether the style sheet can be
accessed correctly. Also, since those Theme files are for displaying
only, I suggest you consider add a rule (through <location> ) to allow all
users access for the Theme folder. e.g.
<location path="App_Themes">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
If you have any other findings, welcome to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?SmVycnkgQw==?= <
[email protected]>
References: <
[email protected]>
Subject: RE: css style sheets not working
Date: Fri, 18 Apr 2008 05:28:01 -0700
Thank you for the replys.
The web.config file had two entries like:
<location path="styles.css">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
On the development machine it worked OK but when I droped this web.config
file on another server it did not. It did not like duplicate location path
entries for the same file. Also FYI if the same css file is in the main
directory and in the App_Themes/theme directory it causes problems.
Thank you for your help.