0

I'm attempting to set up IIS on my Windows 11 computer for testing with my web applications. I can browse to the local sites without issue:

http://localhost/

http://localhost/MobileServiceForms/

I setup my project to point to this site:

enter image description here

This is my local IIS server:

enter image description here

The application folder exists. I did click the Create Virtual Directory in the project and that didn't help.

When I attempt to debug, I'm getting this message:

enter image description here

I checked the permissions and added the Users and myself with full control over the site and MobileServiceForms folder:

enter image description here

I've tried disabling the firewall completely without any luck.

This is an Asp MVC application.

Anyone have any suggestions?

ErocM
  • 4,505
  • 24
  • 94
  • 161
  • 1
    Post your `launchSettings.json` file. – mxmissile Jun 20 '22 at 21:59
  • Did you create a virtual directory on IIS? If you didnot create it, there's no application on IIS, so vs cannot publish to it and you cannot access it. https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-enable-debugging-for-aspnet-applications?view=vs-2022#debug-aspnet-apps – Bruce Zhang Jun 21 '22 at 02:06
  • @mxmissile sorry, I didn't state what framework I am using. We are using Asp.Net MVC. I don't have a launchSettings.json in my solution. – ErocM Jun 21 '22 at 13:52
  • @BruceZhang Yes I did. I've updated my post. – ErocM Jun 21 '22 at 13:53

1 Answers1

1

Found my answer in another post, hope it helps someone else:

https://stackoverflow.com/a/56344197/302613

In order to make sure this mapping appears you need to go to control panel -> turn windows features on or off -> .NET Framework 4.7 Advanced Services (or equiv .net ver) -> WCF Services -> HTTP Activation

ErocM
  • 4,505
  • 24
  • 94
  • 161