Whether your application is an Asp.net 7 or Asp.net core 2 application? From the error message, it seems that your project having two different versions of the same assembly, to resolve this error, use the alias feature of the (References) compiler option or do not reference one of your assemblies.
Then, clean and rebuild your application.
More detail information, see Compiler Error CS0433.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.