title: ASP.NET WebAPI and Razor Pages in the same web location
body: <p>I've developed a project that consisted of just a WebApi, which was deployed through VS WebDeploy at the root of the webspace.
  With new requirements, I also needed to host a webapp in the same webspace (Razor pages).
  I decided to keep the projects separated in my Visual Studio Solution, and publish the API into the <code>{root}/webapi/</code> folder, and the Razor webapp in the <code>{root}</code> folder.</p>
  
  <p>I started by republishing the webapi into the new folder location and making a test API call (adding the folder location as part of the url, so http:/example.com/<strong>webapi</strong>/route), but the Server returned <code>Server Error in '/' Application. Runtime Error</code>.</p>
  
  <p>I wonder if there's some other parameter that needs to be changed when moving the project to a subfolder, and any other solution to the problem I'm trying to tackle is welcome.</p>
  
  <p>PS: I don't have access to the IIS Server settings of the hosting</p>