I had this error when I was working with url rewriting. This is what I was doing;
I had a link like gigznmigz.com/jobs.aspx?JobID=69
And I rewrote like this
gigznmigz.com/jobs/69.aspx
I had my all files in the root folder their are no sub directories. So the problem occurs when i click some link on the page, then the browser looks for that file in /jobs/ directory, but there is no subdirectroy. Therefore it usually gives errors for script, html links. I was getting this error when i tried to signout from the urlrewritten page.
This is how I solved the issue;
I rewrote my url like gigznmigz.com/job_69.aspx, now this is also considered as a page in the root directory.
I used '_' (underscore) instead of '/' (Slash).
Hope you get this.