Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Errors after upgrading from 2.0.4 to 2.1

web-app

Most of the upgrade appeared to work fine, but when I click on "My Work", "My Profile", or simply try to list all the items in a project "All issues", I'm getting NullReferenceExceptions everywhere.

This was from clicking "My Work": 

Server Error in '/Gemini' Application.

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.]
   CounterSoft.Gemini.Business.Profile.getMyWorkSortProp() +56
   CounterSoft.Gemini.Workload.PageLoad(Object sender, EventArgs e) +469
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   CounterSoft.Gemini.Business.BasePage.OnLoad(EventArgs e) +4
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

 

 

Another one from clicking "All issues" under a project:

 

Server Error in '/Gemini' Application.

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.]
   CounterSoft.Gemini.Business.Profile.getMaxIssuesPerPage() +56
   CounterSoft.Gemini.IssuesWeb.PageLoad(Object sender, EventArgs e) +8685
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   CounterSoft.Gemini.Business.BasePage.OnLoad(EventArgs e) +4
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

 

Any ideas here?  I've wrestled with this for the past day, and the rest of my team is starting to get aggravated.

Thanks,

Scott

MaverickWH
· 1
MaverickWH
Replies (7)
helpful
0
not helpful

Did you setup the profile database?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Yes.  I created a new database "GEMINIASPNETDB", then ran InstallCommon.SQL and InstallProfile.SQL

After running those, the only table with data is dbo.aspnetSchemaVersions.

My web config has it set up as well along with the same permissions applied as the Gemini database.

    <add name="ProfilesServer" connectionString="data source=BUILDSERVER;initial catalog=GEMINIASPNETDB;TrustedConnection=true" providerName="System.Data.SqlClient"/>

Thanks,

Scott


MaverickWH
· 1
MaverickWH
helpful
0
not helpful

Some more info....

Given these two sections in the web.config:

  <connectionStrings>
    <add name="ProfilesServer" connectionString="data source=BUILDSERVER;initial catalog=GEMINIASPNETDB;TrustedConnection=true" providerName="System.Data.SqlClient"/>
  </connectionStrings>

    <profile defaultProvider="SqlProvider">
      <providers>
        <clear />
        <add name="SqlProvider"
          type="System.Web.Profile.SqlProfileProvider"
          connectionStringName="ProfilesServer"
          applicationName="Gemini"
          description="SqlProfileProvider for Gemini" />
      </providers>

If I change the connectionStringName from "ProfileServer" to anything else, I get the same error message, which leads me to believe HttpContext.Current.Profile is null. but without seeing any code, I can only speculate.

Any other ideas here?  I installed everything on my local machine, and all works fine.


MaverickWH
· 1
MaverickWH
helpful
0
not helpful

The only thing I can think of is that the web app did not install completely.

How did you upgrade? Can you try and install under a different virtual dir name?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

I've tried it three different ways now, all with the same result.

This time, I completely uninstalled everything.  Starting from scratch, I created two databases -- Gemini, and Gemini_ASPNETDB and ran the installer pointing to the appropriate databases and see the same error.  Furthermore, I uninstalled everything again, and tried using only one database for both, and I'm still getting the same error message.

Lastly, I pointed the server to use my local database (which runs on my machine) and it still doesn't work.

Our server is running on a windows 2003 server with SharePoint 2003 installed, which I believe is causing the conflict.

With version 2.0.4, I had to add Gemini as an excluded directory for SP to manage, along with changing the trust level under <system.web> and all worked fine together, but it appears now that something with Gemini is conflicting with our SharePoint portal.  Unfortunately, this is the only internal server we can use to host Gemini, so I have a bad feeling we're gonna be stuck on version 2.0.4.

 

Thanks,
Scott


MaverickWH
· 1
MaverickWH
helpful
0
not helpful

Scott,

http://support.microsoft.com/default.aspx?scid=KB;EN-US;828810

You may need a section like follows (see above article).

<httpModules>

<add name="Profile" type="System.Web.Profile.ProfileModule" />


Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

Thank you very much for your help!  This got me past the Sharepoint issues. 

After upgrading, I had quite a few nhibernate issues due to userids that were removed, but were causing some grief in the new version:

 

issues,

issuecomments,

timetracking,

personalfilters

 

Once I corrected the database for those 4 tables, all seems well again.

Thanks again,

Scott


MaverickWH
· 1
MaverickWH