title: css and js files not found(server responded with a status of 404) while browsing application on iis7
body: <p>I published my solution on vs 2010. 
  Examples of references to style sheets and js files(<em>first method</em>):</p>
  
  <pre><code>&lt;link href="../../Content/CSS/Login.css" rel="stylesheet" type="text/css" /&gt;
  &lt;script src="../../Scripts/ApplicationSecurity/AuthenticateUser.js" type="text/javascript"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>These work fine while debugging. But while browsing on <em>iis</em> 7 the resources fail to load. In my other applications I have used(<em>second method</em>):</p>
  
  <pre><code>&lt;link href="~/Content/CSS/Login.css" rel="stylesheet" type="text/css" /&gt;
  </code></pre>
  
  <p>and this works fine both during debug and browse on <em>iis</em>. 
  The URL of the view page is:</p>
  
  <pre><code>http://localhost/LaunchLogin/
  </code></pre>
  
  <p>The error on console:</p>
  
  <pre><code>Failed to load http://localhost/Content/css/Login.css resource: the server responded with a status of 404 (Not Found)
  </code></pre>
  
  <p>It should search for the file in:   </p>
  
  <pre><code>http://localhost/LaunchLogin/Content/css/Login.css
  </code></pre>
  
  <p>Can anyone explain how <em>iis</em> tries to access the resources? Also how can I configure <em>iis</em> or publish in such a way that the <em>first method</em> works on <em>iss</em> browse?</p>