Support Forums

 
  iFinity Support Forum  DotNetNuke Modu...  Friendly Url Pr...  Error - have you seen it?
Previous Previous
 
Next Next
New Post 7/9/2008 2:11 AM
  Vitaly Kozadayev
2 posts
No Ranking


Error - have you seen it? 
Modified By Vitaly Kozadayev  on 7/9/2008 3:12:48 AM)

This error has nothing to do with your URL provider. At least, not specifically with your version. However, I am constantly getting these errors and have no idea how to fix it... Have you seen this before? I get it on all of my installations. I think they show up more often on busier sites, but that's not confirmed...


Once the error happens, all I have to do is to restart the app...

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.]
DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +4077
DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +83
iFinity.DNN.Modules.FriendlyUrl.UrlRewriteModule.ProcessRequest(HttpContext Context, HttpRequest Request, HttpServerUtility Server, HttpResponse Response) +2169
iFinity.DNN.Modules.FriendlyUrl.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +104
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


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

 
New Post 7/9/2008 1:09 PM
  Bruce Chapman
640 posts
1st Level Poster


Re: Error - have you seen it? 

I haven't seen this specific error myself, but I'm guessing it's related to where the code works out the current portal settings and stores that in the context.  This is an important piece of code for all the other DNN code - which needs to know in which portal context it is running. 

The code uses two things to create the portal settings object - the alias and the tab id.  If the alias is null because it couldn't be found, then my guess is that the request was for a portal alias that didn't exist.  Or perhaps it was for a tab that has now been deleted from the site - both of these scenarios have the ability to cause the problem.  There's probably others I can't think of either.  If you can track down the request (perhaps through the reuqest logs) that was made when the exception occured, it might shed more light.

 

 
Previous Previous
 
Next Next
  iFinity Support Forum  DotNetNuke Modu...  Friendly Url Pr...  Error - have you seen it?
Can't find the answer?
 

If you can't find the answer and don't have time...try out the Premium Support service.  Get personal attention and get the problem fixed by an expert.

 

Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

If you wish, you can use the Premium Support Service for one-on-one support.