Search code examples
c#asp.netiisapplication-pool

Can not run asp.net application using Local IIS Server


enter image description here

I can't debug my application using a local IIS server. However, when I change to IIS Express I can debug my application.

I'm running Visual Studio as an administrator.


Solution

  • First thing you have to do is:

    register asp.net first to iis server like this;

    1. run cmd as administrator. enter image description here

    2. in IIS >>> application pools >>> .net framework.. check your project framework here if the same of your project framework setting.