Server error in Firefox only, works fine in other browsers

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
1/12/2012 5:06:04 AM
Gravatar
Total Posts 8

Server error in Firefox only, works fine in other browsers

Hello,

I'm not sure if there's any connection, but I noticed the below problem yesterday soon after installing new Windows 7 updates including some .NET updates.

I have mojoPortal running on my localhost since several months, and everything was fine until yesterday. Now if I open localhost in Firefox I get the following error message:

Server Error in '/' 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.] mojoPortal.Web.mojoRoleProvider.GetRolesFromCookie() +144 mojoPortal.Web.mojoRoleProvider.GetRolesForUser(String userName) +199 System.Web.Security.RolePrincipal.IsInRole(String role) +182 mojoPortal.Business.WebHelpers.WebUser.IsInRole(String role) +204 mojoPortal.Business.WebHelpers.WebUser.get_IsAdmin() +63 mojoPortal.Web.UI.AnalyticsAsyncTopScript.DoInit() +106 mojoPortal.Web.UI.AnalyticsAsyncTopScript.OnInit(EventArgs e) +20 System.Web.UI.Control.InitRecursive(Control namingContainer) +140 System.Web.UI.Control.InitRecursive(Control namingContainer) +311 System.Web.UI.Control.InitRecursive(Control namingContainer) +311 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

In other browsers (Explorer 9, Opera, Safari, Chrome) everything is fine. If I do some changes to Web.config, which cause an error message, this error message appears also in Firefox. If I enter a non-existing URL (after localhost), I get the 404 HTTP error also in Firefox. But if everything is fine, in Firefox I get the above server error.

Thanks in advance for any suggestions!

Pavel

 

 

 

1/12/2012 6:57:52 AM
Gravatar
Total Posts 18439

Re: Server error in Firefox only, works fine in other browsers

Hi Pavel,

I don't know why the problem would be browser specific other than perhaps cookies being different, but this issue was indeed a change in behavior after the recent ASP.NET security update. We patched the 2.3.7.6 release of mojoPortal to solve this problem as discussed on this thread where it was first reported. Clearing the browser cookies might also solve it in some cases.

There is also another issue from this security update that can cause an error in sites that have a lot of roles as discussed on this thread.

Hope that helps,

Joe

1/13/2012 5:32:04 AM
Gravatar
Total Posts 8

Re: Server error in Firefox only, works fine in other browsers

Dear Joe, thank you very much!

Yesterday I installed the newest version (2.3.7.6), but unfortunately didn't manage to get it running. Setup worked fine, but then I got error messages like "Unrecognized Guid format." (in all browsers). Now I tried again my old installation (2.3.4.5) and to my surprise it works now also in Firefox. That's strange... But probably I also cleared cookies yesterday as you suggested.

Anyway, thank you!

Pavel

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