not able to create Angular with ASP.Net core application on visual studio 2022

sathya 0 Reputation points
2024-01-24T01:13:57.6633333+00:00

I am getting an error as "Object reference not set to an instance of an object" when I am trying to create a new project "Angular and ASP.Net Core". Can someone please help me ?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,448 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 30,931 Reputation points Microsoft External Staff
    2024-01-24T03:43:52.3833333+00:00

    Hi @sathya, 

    Welcome to Microsoft Q&A! 

    Are you using the latest version of VS2022? Please create a new project and check if it happens again.  

    You can have a try the following:

    1. Update your VS2022 to the latest version with Visual Studio Installer.
    2. Check the document and meet the prerequisites of creating Angular and ASP.NET Core project.
    3. Rename this folder C:\Users\<username>\AppData\Local\Microsoft\VSCommon\OnlineLicensing\VisualStudio, and restart Visual Studio.
    4. Repair your Visual Studio via Visual Studio Installer > More.  

    Sincerely,

    Anna


    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.  

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.