0

Building an intranet system in ASP.NET Core and all was working fine but now I have added identity to it so that a login system can be integrated I have hit a complete roadblock.

Added an identity context to the solution to handle the logins. When I hit build I have got a list of errors like this :

packages_microsoft_visualstudio_web_codegenerators_mvc_8_0_7_Templates_Identity_Pages_Account_Manage_Account_Manage_ShowRecoveryCodes_cshtml.g.cs(119,71): Error CS0246 : The type or namespace name 'ShowRecoveryCodesModel' could not be found (are you missing a using directive or an assembly reference?)

I have built a separate project using identity without any problem. I have even build the project in Rider instead of Visual Studio but still get this same problem.

Any help or insight would be greatly appreciated as this has stopped me dead in my tracks.

1 Answer 1

0

The error states that in the view ShowRecoveryCodes.cshtml, ShowRecoveryCodesModel could not be resolved to a type or found in a namespace called ShowRecoveryCodesModel. Open the ShowRecoveryCodes.cshtml view and check the ShowRecoveryCodesModel reference.

Sign up to request clarification or add additional context in comments.

1 Comment

Hi L0uis, Thanks for your answer, the problem is that there is no actual ShowRecoveryCodes.cshtml to open. It seems like VS is meant to have installed something that it hasn't actually installed so it is then throwing this not resolving it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.