>>I am testing my ASP.NET web application on customer server.
>>
>>I am having a little issue referencing Bootstrap.css. Here is how it is referenced in my Site.Master:
>>
>>
>><link href="~/content/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
>>
>>
>>The following URL in the browser works (that is, Bootstrap is working):
>>
>>http://localhost:8070/MobileApp/Login.aspx
>>
>>
>>But when I change the URL as follows:
>>
>>http://ServerName:8070/MobileApp/Login.aspx
>>
>>
>>The Bootstrap does not work (the layout is all messed up).
>>
>>The structure of the application is as following (in inetpub\www)
>>
>>MainAppSite/MobileWeb
>>
>>
>>MainAppSite is the site where main application reside. MobileWeb is sub-folder where Virtual application reside. The MobileWeb Virtual application should work completely independently of the MainAppSite. And it works with the "Localhost" but not with the server name.
>>
>>What is wrong with how I reference the Bootstrap.css (above)?
>>
>>TIA
>
>The only difference I see in Developer Tools Network, between loading the page with Localhost and Server name is that
>with server name the last line is
>
>/browserconfig.xml HTTP GET 404 text/html 199 B < 1 ms 131181 0 0 0 0 0
>
>
>That is, some browserconfig.xml is not being loaded. How could this affect if Bootstrap.css works or not
Not likely to be the problem - browserconfig.xml is related to IE websites on the desktop.
But I assume that in both cases bootstrap.css *was* being loaded ?
Is the problem browser specific ?
Are any other .css files working?
You could also check that the .css extension is listed in MIME types on the server.