IIS Express Web server error

5 месяцев назад
Hi,
This has probably been answered before but I can't find a solution - using F5 to run Nop 4.6 with code from Visual Studio 2022 and IIS Express, and getting the error:

An error occurred launching IIS Express. The Web server 'hppt://localhost:65283/' could not be found

How can I resolve it?
Thanks
5 месяцев назад
Carrolup wrote:
hppt://localhost:65283/

hppt? not http?

Please share content of your \Nop.Web\Properties\launchSettings.json file
5 месяцев назад
Sorry, serious finger trouble - yes should have been http:
5 месяцев назад
"iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:65283/",
      "sslPort": 44369
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "Nop.Web": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "https://localhost:5001;http://localhost:5000"
    }
  }
}
5 месяцев назад
Try stopping Visual Studio, and then check your system tray to be sure IIS Express is not still running.  If it is, then stop it. Then restart Visual Studio.   Rebuild the Project.

Also, you could try selecting "Nop.Web" instead of IIS Express when running in VS.
5 месяцев назад
Thanks, MVP - doing as you suggested and using Nop-Web worked. Finally got the installation page showing. Haven't done any Nop work since 2019 and v3.8..