Unrecognized tag prefix or device filter 'asp' in intellisense

Deivid Kirchev 95 Reputation points
2023-08-17T14:23:42.05+00:00

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:

  1. The project builds and publishes without any issues - everything works. The problem is only in the editor.
  2. The issue might have happened after I updated Visual Studio (although I am not completely sure)
  3. The exact same project works fine on another computer, even after I updated VS to the latest version there (2019)
  4. This is for all pages, not a specific one.
  5. 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.
  6. 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.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,312 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,375 questions
{count} votes

Accepted answer
  1. Deivid Kirchev 95 Reputation points
    2023-08-17T17:12:27.35+00:00

    The issue got fixed. I don't know how, I don't know why. I was filling my issue to Microsoft, one moment it wasn't working and the next it was fixed. It was like they heard. I don't know what to say to anyone with the same problem.

    Thanks everyone for the support.


0 additional answers

Sort by: Most helpful