« Previous Next »

Thread: Two virtual directories - different outcomes for same code

Last post 07-13-2009 3:10 PM by tomkmvp. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 07-13-2009, 2:00 PM

    • mgtroot
    • Not Ranked
    • Joined on 07-13-2009, 5:51 PM
    • Posts 3

    Two virtual directories - different outcomes for same code

    I have two virtual directores for my website.  One directory is for "testing" and the other is production.   On both websites, the main page navigation defaults to a default.aspx page.

     

    On my testing site, the page comes up fine, but on my production site, users get a warning that they are about to view mixed content (both non ssl and ssl)

     

    That use to pop up because something in the code referenced a non ssl location, but now, both pages have the exact same code.

     

    So why would one site cause Internet Explorer users to get the warning about mixed content, when the other site does not cause that and they both have the same code?

  • 07-13-2009, 2:20 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,237
    • IIS MVPs

    Re: Two virtual directories - different outcomes for same code

    Check the resulting HTML for the production site - are you 100% sure there is no http reference for an image or other resource?

  • 07-13-2009, 2:24 PM In reply to

    • mgtroot
    • Not Ranked
    • Joined on 07-13-2009, 5:51 PM
    • Posts 3

    Re: Two virtual directories - different outcomes for same code

    How do you check the resulting html... by saying view source code?

     

    I am 100% sure that the two files are same, but what I am wondering though, is sometimes I notice that if i don't build the solution correctly with visual studio, even though the "file" itself may be the same.... sometimes, "it seems" as though the actual file it may be using is different, if the build did not save correctly

     

    Currently, I am going to rebuild and save the code and uplaod again to the server

  • 07-13-2009, 2:45 PM In reply to

    • mgtroot
    • Not Ranked
    • Joined on 07-13-2009, 5:51 PM
    • Posts 3

    Re: Two virtual directories - different outcomes for same code

    I think I may have found the difference.  The style sheet that the code references were different between the two.  And the production style sheet had some http references.  I don't fully understand style sheets, but I think the pages pull from that for certain fonts and images, correct?

  • 07-13-2009, 2:54 PM In reply to

    Re: Two virtual directories - different outcomes for same code

    Hi,

    Here's a useful tip that a dev guy passed on to me recently - a quick way of checking that two folders have the exact same content is to point Winmerge at them both and see if it spits out any differences. Having used it a few times in recent weeks I now wouldn't leave home without it.

    http://winmerge.org/

    Regards,

    Paul Lynch | www.iisadmin.co.uk
  • 07-13-2009, 3:09 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,237
    • IIS MVPs

    Re: Two virtual directories - different outcomes for same code

    mgtroot:
    How do you check the resulting html... by saying view source code?

    Yes.

  • 07-13-2009, 3:10 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,237
    • IIS MVPs

    Re: Two virtual directories - different outcomes for same code

    mgtroot:
    I don't fully understand style sheets, but I think the pages pull from that for certain fonts and images, correct?

    Correct.  If there were http references in the style sheets this would cause your problem.

Page 1 of 1 (7 items)
Microsoft Communities