Search code examples
.net-5iis-10

How to set IIS to look for Debug build instead of Release


I'm trying to run the API project of my solution in IIS, and it looks for the exe file in the Project\bin\Release.... folder, but since I'm doing a debug build, there is no release path built. How do I get IIS to look at the build in the Project\bin\Debug... folder?

I'm in VS 2022, Windows 10/IIS 10, and building a .NET 5 API project.


Solution

  • I ended up editing the web.config file, and changing the processPath to the Debug folder rather than the Release folder. Additionally, I had to change hostingModel in that same line from "InProcess" to "outofprocess".