Click here to Skip to main content
15,885,869 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wrote a css file in my application which is working properly when I type localhost in the browser but when I type the ip address of that same machine the .css file is not working.

Is there any permission related issue?
Posted
Updated 18-Jan-11 15:23pm
v3
Comments
Wild-Programmer 18-Jan-11 4:16am    
Seems to be permission issue. Allow permission in web.config for the css folder.
R. Giskard Reventlov 18-Jan-11 4:28am    
How have you declared the style sheet?
thatraja 18-Jan-11 9:46am    
Mention full details dude
HimanshuJoshi 18-Jan-11 21:27pm    
I removed the phrase "need help as soon as possible". This is a forum run by volunteers in their own time. Everybody has urgency, but people will reply whenever they have time. Given that, I believe there are fair amount of users living in different time zones so the answers will be quick unless your question is too vague

1 solution

hi,

Is your application using forms-based authentication? If that the case, you need to apply the <location> tag to the Web.config file to configure access to a specific file and folder. For instance,

<configuration>
...
<location path="yourCSSFolderPath">
		<system.web>
			<authorization>
				<allow users="*"/>
			</authorization>
		</system.web>
	</location>
</configuration>


Source: http://support.microsoft.com/kb/316871[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900