The type or namespace name 'UI' does not exist in the namespace 'Microsoft.AspNetCore.Identity' RRS feed

  • Question

  • User-1202579601 posted

    Error    Code- CS0234   

    Error- Description    The type or namespace name 'UI' does not exist in the namespace 'Microsoft.AspNetCore.Identity' (are you missing an assembly reference?)

    [assembly: Microsoft.AspNetCore.Identity.UI.UIFrameworkAttribute("Bootstrap4")] under AssemlyInfo.cs

    Tuesday, October 27, 2020 1:39 PM

All replies

  • User1312693872 posted


    It will be helpful for us to reproduce your problem if you can offer related code to us.

    You can check whether you have installed the appropriate version of package: 'Microsoft.AspNetCore.Identity.UI'.

    You need to install or update it in NutGet package manager.

    Or check the following link:


    Best Regards,

    Jerry Cai

    Wednesday, October 28, 2020 2:34 AM
  • User-1202579601 posted

    no sir the solution you gave did not solve the problem. It still shows an error

    Wednesday, October 28, 2020 5:31 AM
  • User1312693872 posted


    Please show us

    • the related code
    • How you include the references in the project
    • Project context: Such as version of framework

    Then we can offer some targeted advices for you.

    Best Regards,

    Jerry Cai

    Friday, October 30, 2020 5:57 AM
  • User812195888 posted

    Hi pmdrait,

    Try to add older version (for example: 3.1.10) of Microsoft.AspNetCore.Identity.UI package. It solved my problem.

    Sunday, February 7, 2021 3:36 PM