Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Update : Tested with IIS6 and IE9 the same problem persisted. using paulmorriss's advice the Browser mode and Document for the page were different, so this problem had nothing to do with IIS6 or 7 but with using IE9 ( Havent tried IE 7, 8 yet).

I am developing a site on my machine, and to allow others to view the progress it is being hosted under IIS7 on my local machine. Sames pages look different with IE9 when using localhost,127.0.0.1 or the machine ip than when viewed using the machine name "xpc"

I saved the same page and folloing is the section when viewed with localhost,127.0.0.1 or my machine IP :

<META name="Author">
<META name="Copyright">
<META name="Description">

here is the same thing when viewed using http://xpc instead :

<META name=Author>
<META name=Copyright>
<META name=Description>

There is no hardocing of domain name in any way anywhere (as far I have been able to verify), so why is the same page being served in two different ways? Everything works fine when I launch the site from VS2010 development server.

Also pages looked identical when viewed with FireFox. So my guess is IIS7 is serving differently for IE(9), but why?

Thank you

Edit : Related : Tried it but still no joy, force refreshing the page and looking at the source I can see the meta tag but nothing changed, changing to ip adress shows fine.

share|improve this question
1  
I haven't got IE9, but if you press F12 in IE7 or IE8 you get the developer tools. At the top it tells you the browser mode and document mode. What does this say when you access the web page in the different ways? –  paulmorriss May 11 '11 at 8:00
    
@paulmorriss : thank you, tried it with IIS6 and using your advice, it is IE9 that is interpretting the same page differently based on the ip or domain name of the url! –  Arjang May 18 '11 at 1:00
2  
Could you use an X-UA-Compatible header to force the mode for testing purposes by adding this meta tag? <meta http-equiv="X-UA-Compatible" content="IE=9" > –  Nick May 18 '11 at 8:42
    
Hi Nick, I tried adding that meta tag but still no joy! the site looks right when accessed using ip address! What does ip adress has to do with page document mode?! –  Arjang May 22 '11 at 20:51
2  
IE maintains a compatibility view list that determines what mode to use for each page based on the IP/URL. See also this answer for details of discrepancies with display mode between servers. I suggest displaying all websites in compatibility view in IE9, then testing both URLs again to see if it's related to this. –  Nick May 23 '11 at 8:07

1 Answer 1

up vote 0 down vote accepted

Following solved the problem :

leaving IE9 out got the site to be displayed as it was seen before IE9. Used this MS Refrence

Edit: by leaving IE9 out I mean instead of using

<meta http-equiv="X-UA-Compatible" content="IE=5, IE=8, IE=9, IE=10" >

from the refrence above, I used

<meta http-equiv="X-UA-Compatible" content="IE=5, IE=8, IE=10" >

and it worked.

share|improve this answer
    
Could you clarify what you mean by "leaving IE9 out"? –  GotDibbs Jul 18 '12 at 18:34
1  
@GotDibbs : I updated the answer, thanks for pointing this out. When I reread my answer I had no idea what I meant, had to do some diggging! –  Arjang Jul 18 '12 at 20:35
    
thanks for the update! :) –  GotDibbs Jul 19 '12 at 1:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.