asp.net.netwindowsvisual-studiowindows-11

Error running .NET framework apps in VS on Win11


Error: "process with an Id of xxxx is not running"

versions and debugging steps below - (I essentially tried various reinstallations of every related program, prior to the full reinstallations I also attempted a dozen or so types of cache clears and configuration changes within Visual Studio. It can be replicated however with fresh installations)

OS Name: Microsoft Windows 11 Pro Version 10.0.22621 Build 22621 (tried on both old and fresh installation of the above LTS version, plus 2 additional attempts prior versions that I was updating over the past couple weeks)

VS 2022 (LTS) Tried both community (17.9.2) and pro versions (uninstalled and reinstalled multiple times, deleting all temp/cache folders with each attempt)

IIS express that installs default on VS version above also attempted uninstalling and reinstalling using IIS express 10.0 from site downloaded yesterday 3/11/2024 with the following build number: 3.14.0.572... Also attempted disabling IIS completely in windows, restart, re-enable, and successful retest of .NET core app

.NET Framework v4.8.1 Newly installed GIT repo fails with the above error Created a new project, using default settings on a new MVC template, error can be replicated.

.NET core all new and old applications work just fine - tried LTS and 1 older version on each .NET core 6 and 7

The only thing I could think of is that: a: This specific set-up doesn't work on windows 11 (I tried on a windows 10 PC and it works fine) - but I see no other documentation online of other people having the same issue b: I'm not understanding something

I will create a MS support ticket if this is a genuine version compatibility issue - but I wanted to post this publicly to see if there are others replicating/experiencing the same issue first.

Ideal state is to open a .NET Framework webpage in IIS express.

Edit: Adding photo of execution on a fresh MVC repo in VS admin mode Error in admin mode vs installation (2) vs installation


Solution

  • I'm able without issues able to create a new MVC project, and one that is .net framework. I thus assume this project type:

    enter image description here

    After selecting above, then I get this:

    enter image description here

    enter image description here

    And then I get this:

    enter image description here

    And then hitting F5 to build + run, I get this:

    enter image description here

    As noted, if the basic create and run of a new project was broken, then millions of users of Visual Studio would be having your problem, and clearly they don't.

    As noted, if you trying to create a webforms project, then you have to for vs2022 install the additional workflows, as they are not installed by default.

    I'm on windows 11, vs2022, v17.9.2

    Edit: Make sure additional workflows are installed

    So, to make sure ISS is installed, and other bits and parts, then select these work flows (menu->Get tools and features).

    Hence these:

    enter image description here

    So, now in your new created project, then project->"project name" properties.

    And on the web tab, check these settings:

    enter image description here

    So, force the bit ness to x64 bit version.

    And also click on the Create Virtual Directory button.

    So, right now, this looks like IIS is not installed, or you want to force the project to x64 bits, and also try clicking on the virtual directory button.