Link to home
Start Free TrialLog in
Avatar of sandya_116
sandya_116

asked on

IIS Two websites behaving differently with same code

I have windows server 2003 with IIS 6. Under "Default web site", I have a Website1 which was created long back and it functions fine. Recently, I have added another Website2 under "Default web site" with exactly the same code as Website1. But, Website2 is not behaving or looks the same as Website1. HTML5 controls are not displayed properly even with exact same code. I am not able to figure this out and I am under time constraint. Appreciate any help. Thanks.
Avatar of David Sankovsky
David Sankovsky
Flag of Israel image

Does the site use an application pool?
Did you make sure that the application pool has the same settings?
Also, did you try copying the site to the2nd server using the MS deploy tool, which is designed exactly for that?
Avatar of sandya_116
sandya_116

ASKER

Hi David,
Thanks for your reply. They both are using the same application pool so settings are same. Both of these are on the same server which is why I am not understanding why it is behaving differently. Can we use MS deploy tool to copy the site on the same server?
Hi Sandya, I'm not sure It's possible.. MS Deploy copies a site completely, right down to the name of it, so I'm not sure you can use it the way you do.

Basically what you are saying is that you have two websites on the same server that have the same settings and the same code, yet they behave differently, that sounds a little.. well to be honest, it's not quiet possible. Did you check all the other settings? the ASP.NET settings, Permissions, connection strings and so forth
Hi David,
The code including the config file is exactly the same on the 2 sites which are on the same server. If I right click on each website, the properties look same but is there a way to get a list of what properties are different for the 2 sites. Or,  maybe use the first one as an example to create the second one?
ASKER CERTIFIED SOLUTION
Avatar of David Sankovsky
David Sankovsky
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
its not must to be iis issue
to verify
first as both running on default website are you using different port for second website  ?
if so check web.conf file and check if there is any static url and add the port
second turn off firstwebsite and check peformance to check if you v wrong static links
third add full url to trusted site zone with compatability view for ie
Sorry, due to confidential screenshots, I cannot share those here. For example, there is a password textbox field. On Website1, if I type the password, it is displayed as dots. But, on Website2, it is displayed with the actual text. I duplicated the code but I just don't know how to duplicate the IIS settings/properties. Is there a way to atleast compare what is different.