Akif Zaman
Akif Zaman

Reputation: 51

Visual Studio 2022 error "Object reference not set to an instance of an object" after trying to create new project on asp .net web application

Image

After Installing Visual Studio Community 2022 version 17.3.4 I have tried to create new new project on asp .net web application(.NET Framework)(c#), but it is not working as you can see it constantly saying object reference not set to an instance of an object. I have tried to run it as administrator. I have done most of the things I have found on the internet but nothing seems to work.

Upvotes: 3

Views: 6053

Answers (1)

Albert D. Kallal
Albert D. Kallal

Reputation: 48989

Hum, I am running 17.3.4, and it works just fine.

I would consider doing a repair - see if that helps.

tools->get tools and features.

You get this:

enter image description here

(it actually opens two pages). So close the above form, and then you get this:

enter image description here

So, try the repair.

I suppose ensuring that previous (legacy) templates are also installed would help, but first try a repair.

Edit: Installing legacy templates

Ok, in comments it was asked what additional install(s) is one to select.

From VS menu tools->get tools and features.

You get/see this:

In above, expand the "ASP.NET and web development" on the right

this:

enter image description here

And then select these: (can't remember which exactly from above gets you everything, but given doing legacy development, good idea to select all that I pointed out).

enter image description here

Upvotes: 2

Related Questions