locked
Problem with SSL in Debug/Release mode RRS feed

  • Question

  • User-1765853593 posted

    Hello,

    I have installed SSL trial on my local machine to test my web applicaiton.
    And got a problems with SSL.

    When application is compiled in Debug mode all is working fine.
    But if I compile app in Relese mode I'm getting error (in Firefox):
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
     

    In both cases     <compilation defaultLanguage="c#" debug="true" > ...
    But even if I set debug="false" the same error appears in Release mode.

    I wonder how it can be related to application compilation mode?
    (using ASP.NET 1.1)
     

    Thanks in advance,
    Dmitriy Nagirnyak.

    Thursday, April 5, 2007 7:21 PM

Answers

  • User-1765853593 posted

    I found the problem (mine).

    I have one page that redirects to HTTPS or HTTP  depending on settings.
    This page internally performs Server.Transfer.

    The other pages (transfered to) always DO NOT require SSL and redirects back to HTTP.

    So there're circular redirects.

    With Release/Debug mode: I have #if DEBUG macro that wraps redirection code.
    We should be more careful using #if DEBUG.

    Regards.
     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 6, 2007 8:16 AM