asp.net and Visual studio root directory question
Posted
by Mark Kadlec
on Stack Overflow
See other posts from Stack Overflow
or by Mark Kadlec
Published on 2010-04-30T15:36:01Z
Indexed on
2010/04/30
15:47 UTC
Read the original article
Hit count: 232
ASP.NET
|visual-studio-2008
I am seeing something very odd and thought I would ask the Stackoverflow community if they knew the answer.
I have an asp.net project that runs fine in one environment, but couldn't figure out what happened to the styles in another environment.
In the first environment (Windows 2008 Server), the following link worked fine:
<link href="/Styles/09/style.css" rel="stylesheet" type="text/css" />
but in the other environment (it's a Windows 7), I had to change it to work:
<link href="../Styles/09/style.css" rel="stylesheet" type="text/css" />
Notice that the directories seemed to shift ahead one directory in the Win7, what's going on? It's like the "running" directory seems now be the \bin directory instead of the home!
Which environment is configured correctly? How do I determine execution directory level? My concern going forward is pushing to a prod environment and guessing which configuration is correct.
Any insight would be appreciated!
© Stack Overflow or respective owner