This is the second time I am getting this error. The first time the only fix I found was to recreate my project and all of the files, but this time it is not an option.
I am getting an "Unrecognized tag prefix or device filter 'asp'" error on my asp tags in a .ascx control. Everything was working fine yesterday, but today when I started the project this occurred. Some things to note:
- The project builds and publishes without any issues - everything works. The problem is only in the editor.
- The issue might have happened after I updated Visual Studio (although I am not completely sure)
- The exact same project works fine on another computer, even after I updated VS to the latest version there (2019)
- This is for all pages, not a specific one.
- I have tried every solution I could find, but none of them seemed to work for me. Some things I've tried: deleting .vs file, reinstalling VS, restarting PC, deleting ReflectedSchemas content from AppData, and more.
- Another issue that happens in the same project, although I am not sure if it is related to this - I am getting an error on all my .ascx files that the code behind the file cannot be found. F7 doesn't take me to the .cs file. However, if I click on view markup from the .cs file I am taken to the right .ascx, so it is a one-way thing. As I said, the project builds and runs without any issues.
This is really a big problem for me as the intellisense is not working and makes my work a lot harder.
Thank you for your time, I will be happy if you have any suggestions for me. You can ask me for further information, and I will gladly provide it.