problem with https://

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
5/18/2006 3:32:13 AM
Gravatar
Total Posts 9

problem with https://

This is weird. On my server which contains an ssl certificate, all of the Mojo menu links look good (https://) when the mouse hovers over the link, but when the link is resolved, the url is rewritten without the "s", i.e. http://

I can log in & out, view members, and do a search. Other than that, all pages are not accessible. It appears that all of the errors are associated with access to the default.aspx.

I've tried fiddling with every web.config setting to no avail. Any ideas?

Thanks Again,

Chuck

5/18/2006 1:55:18 PM
Gravatar
Total Posts 18439

Re: problem with https://

Hi Chuck,

If you have an ssl certificate available and the SSLIsAvailable is set to true in the web.config mojoportal will automatically use ssl for the login, register, and profile pages but it will not use it on any other page unless you have it configured in SiteSettings to Use SSL on All Pages or if you go into the page settings for a specific page and check Use SSL.

When you are on a page that is using ssl like the login page for example any links on the page that use relative urls will use https however when you click a link in the menu, even though the link has https, the page will try to switch out of ssl to plain old http unless the page is configured to require ssl or the site is configured to require it on all pages.

In other words the page will try to do what it is configured to do, if it is configured to require ssl, it will try to force https even if you enter http and conversly, if it is not configured to require ssl it will try to force out of ssl into http even if you enter the url as https.

At least that is how it is supposed to work.

If that is not how it is working and if you are getting errors please try and provide the stack trace for the error. You might find better error info in ~/Data/currentlog.config

Hope it helps,

Joe
5/22/2006 5:02:12 AM
Gravatar
Total Posts 9

Re: problem with https://

Joe,

Thanks - I got the https issue resolved by going into the database and changing the secure flag on each existing page. But my problems contine. I can only get to the home page via the link on the error.htm page. Otherwise IIS returns a server error. I suspect that the problem is somewhere in the web.config because Mojo is configured as an application within another secure .Net website that also requires a login. Any ides?

https://localhost/mojoportal/Secure/Login.aspx?ReturnUrl=%2fmojoportal%2fDefault.aspx

 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.NullReferenceException: Object reference not set to an instance of an object.

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:

[NullReferenceException: Object reference not set to an instance of an object.]
   mojoPortal.Web.Login.Page_Load(Object sender, EventArgs e) +351
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +750

Server Error in '/mojoportal' Application.

Object reference not set to an instance of an object.

 


Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

5/22/2006 5:17:12 AM
Gravatar
Total Posts 18439

Re: problem with https://

Hi Chuck,

That error is occuring on line 67 on the login page page load event where it is trying to get a reference to a SiteSettings object that should be in the httpcontext but is apparently null.

I'm not sure what is causing your siteSettings object to be null but if you can figure that out it will probably lead to the solution to the problem.

In the gloabl.asax.cs in Application_BeginRequest is where it should be creating a SiteSettings obejct and putting it in the Httpcontext so it can be used anywhere else during the processing of the request. You might set a break point there and step through and see what is causing it to be null.

Hope it helps,

Joe
5/22/2006 5:31:53 AM
Gravatar
Total Posts 9

Re: problem with https://

Joe - Thanks for the quick reply. I'm using a release (compiled ) version 1-0-2 mssql rather than the source code and compling it myself so it won't run in studio. I'll play with it some more and will keep you posted.

Chuck

10/6/2011 3:22:17 PM
Gravatar
Total Posts 24

Re: problem with https://

Greetings,

I'm having the following issue:

I'm having a problem where the website seems to redirect when I try use https://

I have the following settings in the web.config:

<add key="SSLIsAvailable" value="true"/>
<add key="SSLIsRequiredByWebServer" value="true"/>

Specifically the site tries to add the virtual subdirectory AGAIN onto the end of the base web and then I receive a 404 page not found

This works: 

http://candjventurepartners.com/mojoportal

 

but this redirects to a NON http and adds the /mojoportal onto the end thus giving a 505

https://candjventurepartners.com/mojoportal

Thanks for any help with this,

Carl

10/7/2011 8:37:08 AM
Gravatar
Total Posts 18439

Re: problem with https://

I'm pretty sure this was fixed in mojoPortal version 2.3.7.0. I'd recommend upgrading.

But really, I also recommend install it in the root directly at https://candjventurepartners.com/

instead of in a sub folder.

Hope that helps,

Joe

10/22/2011 10:51:41 AM
Gravatar
Total Posts 24

Re: problem with https://

Okay, I actually made the change to create the site as a root web instead of a virtual directory.

https://candjventurepartners.com

resolves but now immediately redirects to http://candjventurepartners.com

however, https://candjventurepartners.com/Secure/Login.aspx

does NOT exhibit the same behavior and stays with port 443 and encryption.

Here are the settings I'm using:

<add key="AllowPasswordFormatChange" value="true"/>
<add key="SSLIsAvailable" value="true"/>
<add key="SSLIsRequiredByWebServer" value="true"/>
<add key="MaskPasswordsInUserAdmin" value="true"/>

So my question is this normal behavior?  And is there another way I need to have all the pages use https.

Thanks!

Carl

10/22/2011 10:58:25 AM
Gravatar
Total Posts 18439

Re: problem with https://

Yes, its normal behavior. You can either set individual pages to use SSL from Page Settings or you can make all pages use SSL by checking a box in Site Settings.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.