Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio is still displaying errors for a file that I already deleted

A file was displaying errors: Too many characters in character litteral. So I deleted the aspx file. When, when I compile the application, it's compile fine. However, when I open the Erros windows, I still see those errors there and they supposed to be thrown from the page I've already deleted.

Any way to fix the problem?

Thanks for helping

like image 484
Richard77 Avatar asked Oct 22 '25 16:10

Richard77


1 Answers

I don't think that's a real error, if you have indeed deleted that file already.

I have a couple of suggestions:

  1. Close Visual Studio
  2. Delete all the temp files from the Temporary folders in Windows/Microsoft.Net/ Framework and Framework64/TemporaryInternetFiles

Open Visual Studio and reload your solution. If you still see errors and that file is still part of your solution.

On my system one of the paths is like this : "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files".

When you compile an application the code gets deployed in one of the 32 or 64 bit folders. This allows the code to run quickly without recompilation if nothing has changed from the previous run. This is usually one of the sources of issues like the one you are seeing. You think you've removed something but old code is still present there in the temp folder.

like image 111
Andrei Dragotoniu Avatar answered Oct 25 '25 06:10

Andrei Dragotoniu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!