Application Error at the login screen

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/2/2006 8:06:13 AM
Gravatar
Total Posts 9

Application Error at the login screen

I'm trying to run the release version using MS SQL  and IIS. Any idea what I'm doing wrong here.

Object reference not set to an instance of an object.

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() +739


Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
5/2/2006 9:01:25 AM
Gravatar
Total Posts 18439

Re: Application Error at the login screen

Hi Chuck,

Are other pages working? Is there any data in mp_Sites table?

Joe
5/3/2006 1:19:22 AM
Gravatar
Total Posts 9

Re: Application Error at the login screen

Hi Joe,

Yes - mojoportal is the only site in the mp_Sites table. I can browse to the error.htm page, but all other pages redirect me to the login screen which causes the error.

5/3/2006 2:48:04 AM
Gravatar
Total Posts 18439

Re: Application Error at the login screen

You should be able to get to the home page without being logged in if installation went normally.
Is there any data in mp_Pages, mp_Users, mp_Roles, and mp_UserRoles?

Also I'm surprised if you are running on windows that you chose the 1.x version of mojoportal for the 1.1 .NET framework instead of the 2.x version of mojoportal for the 2.0 .NET framework. The 2.x version is better, the only reason I could think of using the 1.x version is if you only have Visual Studio 2003 and not VS 2005 but then, you are working with the release files instead of source so it would seem better to use the 2.x version unless you were working with the source code and only had VS 2003 available.

Joe
5/3/2006 3:19:17 AM
Gravatar
Total Posts 9

Re: Application Error at the login screen

Joe,

The data tables look fine. I'm assuming that the home page is default.sapx, correct? Also, I'm using 1.x version because that is the framework available on my server. Our shop is still using VS 2003. Any other suggetions?

Chuck

5/3/2006 3:28:06 AM
Gravatar
Total Posts 18439

Re: Application Error at the login screen

If you are planning to customize and extend mojoportal you should get the source code from svn trunk, rebuild the solution, set your connection string and try stepping through the code if the problem persists (it may go away if you get the code from svn).

Other than that I can try and see if I can replicate the problem but it may be a few days before I get a chance.

The error indicates a line of code that is trying to get the siteSettings object from the http context and it turns out to be null when it should have been put in the http context in global.asax application_beginrequest.

Other clues/error messages may be available in ~/Data/currentlog.config file

Hope it helps,

Joe
5/5/2006 2:10:16 AM
Gravatar
Total Posts 9

Re: Application Error at the login screen

Joe,

Problem solved. IIS was not configured correctly. My mojo directory had been "webshared" rather than configured as a virtual directory.

But now, the file upload features do not work. How do I configure this?

Thanks,
Chuck

5/5/2006 3:40:00 AM
Gravatar
Total Posts 148

Re: Application Error at the login screen

In what way do they not work?  Are you getting an error?  If so, please post a stack trace.

--Dean
5/5/2006 4:00:52 AM
Gravatar
Total Posts 9

Re: Application Error at the login screen

Joe,

I got it working. The directories in the download were all zipped as read only. After I changed that, everything worked fine. Sorry to bother you so often.

This is a very cool app. Nice job!

Chuck

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