Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Routing - the missing application

$
0
0

I have distributed my first core system to our IIS server for testing and I have found that I'm missing a piece of my context.  The system has been loaded into an IIS application, thus the url ishttp://mytestdomain/mytestsystem.    When I direct to this url (which works fine) the system does a check to see if I'm making the request from a specific IP and if not redirects me to a login page i.e.http://mytestdomain/mytestsystem/Identity/Login (Identity being the controller and Login being the action).  The result of the /Home/Index controller/action is "/Identity/Login?returnURL=whatever", which works fine from my PC, but when loaded on to IIS this directs to http://mytestdomain/mytestsystem/Identity/Login which returns a HTTP 404 error (as it should).

I then created a little test page to see what context and the routing was telling me about where I am.  I used the /Home/About controller/action and I found these results:

The scheme is "http".

The host is "http://mytestdomain"

The path is "/Home/About"

The routing data results in

Key        Value        
                controller;                            Home;            
                action;                            About;

Can anyone tell me where I can find the "mytestsystem" IIS application?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>