I am from a Classic ASP background and now trying to migrate into ASP.NET MVC. I am confused when I debug/deploy using IIS Express vs Local IIS.
For IIS Express when I first launch my web when I am at the tab Login.cshmtl in Visual Studio 2017. I will go to the following URL http://localhost:44300/
If I switch to Local IIS I will go to this URL http://localhost/BRO
With a BRO there, my subsequent routing will not work and all my glyphicons referencing are pointing at the wrong path. All other referencing is also not working
==========================================================================
Besides the font referencing, All other referencing will go haywire if the Login page fire-up with different URL
***I am not sure which url I will work***
var url = 'Login' **This works when http://localhost:44300/Home/Login***
****
var url = 'Home/Login' **This works when only http://localhost:44300***
**In the http://localhost/BRO situation**
var url= **I am not sure what will work here**
var formData = $('#formLogin').serialize();
$.ajax({
url: url,
type: "POST",
***Another anchor tag with href will reference wrongly***
<a href="/Password/ForgotPassword" class="btn btn-link">Forgot password?</a>
===========================================================================
Web
Solution Explorer
IIS
How do I make the URL to be the same? Please help












Local IIS? How have you configured the virtual directory on local IIS?Default Web Sitepoints tolocalhostand you have created another website inside it with nameBROthat's why you see the URL aslocalhost/BRO.http://localhost/BROwhat is the URL it is using to locate the fonts?