SSL, please help

Last post 07-02-2008 3:07 AM by saquib189. 4 replies.

Sort Posts:

  • SSL, please help

    09-24-2006, 4:27 PM
    • Loading...
    • emeshuris
    • Joined on 10-31-2005, 6:20 PM
    • Posts 7

    I set up this appliction, installed CommerceDB on the server, have asp.net db working.

    When I try to log in, this is the error:

     

    The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL. body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

    Server Error in '/PayPal_OG' Application.

    The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [HttpException (0x80004005): The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL.]
       System.Web.Security.FormsAuthentication.SetAuthCookie(String userName, Boolean createPersistentCookie, String strCookiePath) +149
       System.Web.Security.FormsAuthentication.SetAuthCookie(String userName, Boolean createPersistentCookie) +53
       System.Web.UI.WebControls.Login.AttemptLogin() +227
       System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +134
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +107
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +178
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3839
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
  • Re: SSL, please help

    01-01-2007, 10:25 PM
    • Loading...
    • aarnott
    • Joined on 05-13-2003, 4:18 PM
    • Kirkland, WA
    • Posts 50
    I found some help for you in this article.  Basically you probably have a line like this in your Web.config file:
    <forms loginUrl="Secure\Login.aspx"
    requireSSL="true" . . . />
    Change requireSSL to false and that should do it for you, but be aware of the security implications discussed in the article I linked to.
    Andrew L Arnott
    Visual Studio Platform & Ecosystem
  • Re: SSL, please help

    06-29-2007, 4:21 PM
    • Loading...
    • bc1016
    • Joined on 05-23-2007, 8:51 PM
    • Los Angeles
    • Posts 22

    Hi,

    I ran into the same issue and when I turned off the requireSSL it worked, but what if I want to leave it on, what's the solution? My web site (a financial site) needs SSL at all times from the point of login to logout.

    Another question is how do I test SSL during development using the ASP.NET built-in server and not IIS, or do I have to use IIS to test SSL?

     
    Thank you.

     

    Bill
    Software Developer
    Los Angeles
  • Re: SSL, please help

    06-29-2007, 4:35 PM

    You need to use IIS for this.  Set up two sites, one for port 80 (with no ssl), and one for port 443 (only SSL).  Make the port 80 site redirect to the 443 site.

    I haven't tried this out just now, but I think this is how i've done it in the past.

  • Re: SSL, please help

    07-02-2008, 3:07 AM
    • Loading...
    • saquib189
    • Joined on 07-04-2005, 4:09 AM
    • ujjain
    • Posts 197

    Hi, trying to access http://msdn.microsoft.com/en-us/library/aa302426.aspx that should solve your problem.

    Thank you

    saquib
    Filed under:
Page 1 of 1 (5 items)
Microsoft Communities
Page view counter