When I try to debug my Web Application Project, the Chrome browser starts and then redirects to http://www.localhost/default.aspx
, resulting in a 404 error.
Why is the www
prepended to the hostname? I looked in the web.config for rewrite rules, the master page for rewrite logic and also the Global.asax.vb file where I just have this:
Protected Sub Application_Start()
AreaRegistration.RegisterAllAreas()
GlobalConfiguration.Configure(AddressOf WebApiConfig.Register)
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters)
RouteConfig.RegisterRoutes(RouteTable.Routes)
BundleConfig.RegisterBundles(BundleTable.Bundles)
End Sub
But nowhere do I find why the www
is prepended.
Where else could it be defined?
UPDATE 1
When I look ath the default.aspx file properties, I see this:
Browse to URL = ~/Default.aspx
When I build it, it redirects to http://www.localhost/Default.aspx
When I go to Project->Properties->Web->Servers I see this as the project URL: http://localhost:64710/
When I create a new project and build that, it redirects to http://localhost:64697/ and show a page successfully.
So there must be a configuration somewhere in my project that I'm overlooking. I DON'T want to create a new project and copy over all the old stuff.
What can I do?