Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET - Lost access to stylesheet and JS after doing SVN update to previous revision
    text
    copied!<p>I am having the strangest behaviour. I recently did a SVN update to an older revision so I could debug something and I lost access to my main stylesheet which is located in a styles folder eg:</p> <pre><code>&lt;link href="/styles/main.css" rel="stylesheet" type="text/css" /&gt; </code></pre> <p>However I can still access (which is located in the same directory):</p> <pre><code>&lt;link href="/styles/jquery-ui-1.9.2.custom.css" rel="stylesheet" type="text/css" /&gt; </code></pre> <p>I also found that I could access all of my javascript files located at:</p> <pre><code>/scripts/&lt;my javascript files&gt; </code></pre> <p>until I did a second update to a previous revision, and now I cant access </p> <pre><code>/scripts/jquery-1.9.0.js </code></pre> <p>but I can still access the other scripts in the same directory!! By not being able to access them I mean that I get redirected to the log in. ASP.NET Membership seems to be looking for authorisation to access these files. ie</p> <pre><code>http://localhost/Account/Login.aspx?ReturnUrl=%2fstyles%2fmain.css </code></pre> <p>I am using RBA but not in these directories. My page source looks like this:</p> <pre><code>&lt;link href="/styles/main.css" rel="stylesheet" type="text/css" /&gt; &lt;link href="/styles/jquery-ui-1.9.2.custom.css" rel="stylesheet" type="text/css" /&gt; &lt;script src="/scripts/jquery-1.9.0.js"&gt;&lt;/script&gt; &lt;script src="/scripts/jquery-ui-1.9.2.custom.min.js"&gt;&lt;/script&gt; &lt;script src="/scripts/spin.js"&gt;&lt;/script&gt; &lt;script src="/scripts/js.js"&gt;&lt;/script&gt; </code></pre> <p>and I find it strange that its only the first css and js file that are being blocked.</p> <p>Just to reiterate, this has worked fine until I did the SVN Update To Revision. Updating to Head revision afterwards does not fix the problem. Furthermore I have this application deployed and it works fine. </p> <p>Explicitly setting access in the web.config does nothing....</p> <pre><code>&lt;location path="styles/main.css"&gt; &lt;system.web&gt; &lt;authorization&gt; &lt;allow users="*"/&gt; &lt;/authorization&gt; &lt;/system.web&gt; &lt;/location&gt; </code></pre> <p>If someone has an idea I would be most grateful. Thanks.</p> <p><strong>UPDATE</strong></p> <p>Setting </p> <pre><code>&lt;roleManager enabled="false"&gt; </code></pre> <p>does not fix the problem.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload