Jerry Warra
Jerry Warra

Reputation: 304

Site displays different when debugging in VS2012 with IE and when in production

I'm working on a asp.net project that is a responsive website so it can be viewed on mobile and tablets. When running the project the site opens in IE 11 and looks great. When I publish the site and open it with IE 11 the div that holds the main content is dropped to the next line.

What am I missing to publish or set to have this correct? Thank you

Upvotes: 0

Views: 16

Answers (2)

Jerry Warra
Jerry Warra

Reputation: 304

I found the steps to find the answer here:

Div displays differently in IE and Chrome

I went into the developer tools and Console and there it said that it was being displayed in Compatibility View. I checked the settings and sure enough the url was listed. I removed it and refreshed and everything is looking good.

Upvotes: 0

PREVOST Corentin
PREVOST Corentin

Reputation: 39

If you're developing on ASP.net you might be using IIS, such is a web server which I don't know a lot about.

My idea is that you are probably missing configuration changes from development to production mode of your web server.

Hope it will point you to the right direction.

Upvotes: 2

Related Questions