1

I have the latest VS2017 Enterprise. I have 'ASP.NET and web development' workload installed. Also I have .NET Core SDK both versions 32/64 bits.

I create new ASP.NET Core Web Application from template.

When I try to 'Start without debugging' I got an error - "The Project doesn't know how to run the profile IIS Express"

At the same time this project can be run successfully from command line

dotnet run

I know that similar question exists but all suggestions from it are not helpful in my case Visual Studio 2015 can't start IIS Express

algot
  • 2,428
  • 3
  • 19
  • 23
  • Could you provide a screen shot of the `Debug` tab when you right-click the project in Solution Explorer and choose `Properties`? – NightOwl888 Feb 21 '18 at 11:59
  • @NightOwl888 Here it is http://prntscr.com/ihruf0 – algot Feb 21 '18 at 12:01
  • That's weird. I see a lot more fields when I view that tab in an ASP.NET Core project, including settings for configuring the web server, and I am on VS 2017 Community Edition. – NightOwl888 Feb 21 '18 at 12:08

2 Answers2

1

I reinstalled my VS from scratch and now it works

algot
  • 2,428
  • 3
  • 19
  • 23
  • I let Visual Studio Installer repair the installation which ended with the demand to restart the system, and it ended up working too. Removing the .vs folder and restarting earlier didn't help. There was never any bad sign during installation. – Stein Dec 03 '21 at 17:52
0

try to remove the vs folder and try to run the project enter image description here

The .vs is a hidden folder so you have to enable the Show hidden files

PS: close visual studio before removing the folder

Mustapha Larhrouch
  • 3,373
  • 3
  • 14
  • 28