I have never seen a more infuriating problem than this. Okay, I am building my first website using ASP.NET. I’m still a little new to HTML, CSS, ASP, etc, but I’m very used to .NET and Visual Studio. I started out with the default Web Forms template, and began modifying the Site.Master file and Site.css file to fit my site.
I would show you what they were except that I can’t get to them right now. Why? Well I’ll explain. After messing around with the page for a few minutes trying to figure out what I messed up that could be causing the errors, I decided to simply role back that page to how it was two days before, since I hadn’t made too many changes to that page anyway.
So I downloaded a copy of the project and copy/pasted the HTML from the old Login.aspx, to the active one (I did the same for my Login.aspx.vb). No errors! So I left my computer and ended off for the day, thinking I would just start over with that page, step-by-step, and figure out what caused the error.
But when I got back to my computer today, things got really messed up. First off, when I loaded the page (before making any changes) the errors came back. So I went back into my old aspx file and re-copied the HTML (top to bottom, just like before). But this time when I reloaded the page, something different happened.
Now keep in mind I did not make any change to the Site.Master page this whole time. But when I reloaded my login page, it gave me the page as it looked two days before, including the outdated header which at that time I was still in the middle of creating.
So I figured it must be cached somewhere. In Internet Explorer: I tried Ctrl-F5 (which worked in the past); nothing, I tried clearing the cache (Safety->Delete browsing history…->Temporary internet files); nothing, I tried changing the cache settings (Internet Options -> General -> Settings [in Browser History section] -> Every time I visit a web page); still nothing.
In Google Chrome I tried: Ctrl-F5 (which worked in the past), clearing the cache (Settings -> Show advanced settings… -> Clear browsing data ->Obliterate the following items from the beginning of time -> Empty the cache), and disabling the cache in the DevTools (F12->Settings -> General -> Disable cache (while DevTools is open)).
None of these things worked, both browsers still showed the same outdated version of the web page. Now, any sane person might think that I changed something in the Site.Master file to set it back to how it used to be, but I’ve double checked the source code and it is still up to date. Cases in point being two buttons from the original template which I deleted from the source yet are still there somehow.
Some interesting things to note are that if I open the web page in the Page Inspector is comes out right (so the source has definitely not been changed) and that after I rebooted the machine, I was able to use Ctrl-F5 to reload the page and it did come up correctly (but with the JS errors too). After that though I tried recopying the old HTML again to fix the errors, which promptly reset the header the the outdated form it was in before I restarted.
So that’s my long story: a problem within a problem. Any ideas?