I am running a 32-bit ASP.NET application using .NET Framework 4.8. I am getting the following error when starting the application:
error CS1504: Source file 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\...\xxx.cs' could not be opened ('Unspecified error ')
What I have tried
I found out what the issue was. There were language features that needed to be installed through Visual Studio 2022.
Go to Build => ASP.NET Compilation => Enable latest C# and VB language features