Eric
Eric

Reputation: 1068

IIS URL Rerouting MVC 404 Error - Hangfire

I'm trying to add an MVC site under a domain where there is an existing site. The new site is just a simple mvc site to show a hangfire dashboard. I'm using IIS 8.5.

The current site is an old ASP.NET Web Forms site and will not allow the routing to the new MVC application and I get a 404.

The old site needs to be accessible at https://example.com and I need to be able to access the Hangfire site at https://example.com/Reporting/hangfire.

I have the MVC application configured and it works when the physical path of the Web Forms site is not pointing to the root folder (example.com).

I am new to the routing configuration in IIS so I am not sure if there is a URL Rewrite rule that would be useful for this or if need to do something else.

Edit

This is the root site, its a web forms site deployed by someone else. I added the MVC site as an web application and it uses a different app pool. I get a 404 in this case because the web forms app is handling the routing and its never getting to the MVC app.

enter image description here

enter image description here

Upvotes: 0

Views: 487

Answers (1)

Eric
Eric

Reputation: 1068

I was able to get this working by deploying the site under a sub-domain; I had to convince our admin to allow this. The MVC site worked on its own but never when nested under the Web Forms site.

Upvotes: 0

Related Questions