I recently came across an issue in Visual Studio that had my brain spinning for a couple a days:
- I was accessing a custom page through the browser and the result was a blank.
- I imagined it was some kind of authentication issue or missing resources, and I used Fiddler to check the traffic, but nothing was found there that could give me a clue.
- Things got a little weird when I tried to open the custom page in Visual Studio, and a blank NOTEPAD popped up. I went outside of Visual Studio and tried to open the ASPX file directly in NOTEPAD, but I got an empty file.
So after doing some online research, I found out that this issue was related to a missing file pointer at the OS level. This could’ve been caused by a sudden shut-down, which makes sense because I usually close the VM immediately rather than properly shutting down the system (lesson learned).
Seems like there is no resolution for this issue, and the only alternative is to recreate the file.
Luckily I was using source control, so I just deleted the file locally and got latest version.