I am setting up a new project and it works fine on my local desktop. When I deploy it to IIS, it returns 404.
The IIS website was created and used .NET 2.0 by default.
- Go to IIS –> Application Pools.
- Find the website application and make sure it uses .NET Framework v4.0.30319 instead of v2.050727 and Managed pipeline mode = Integrated.