Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

Object reference not set to an instance of an object

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
sonalij
Posts:24



07/30/2007 9:18 AM  

 

I'm very new to DotNetNuke, and having some major issues with the pages I'm working on.

I set up my page a few days ago, using the book "Professional DotNetNuke 4" and followed its instructions exactly. I created a site, and added a few pages to it (including a login page which forces you to login before you can view the other pages).

Now if I try to go to the URL 
http://localhost/dotnetnuke
I get the following error:

Server Error in '/DotNetNuke' 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.

But if I go to
http://localhost/dotnetnuke/Home/tabid/36/ctl/Module/ModuleId/370/Default.aspx
I get the login page

I'm just wondering if it's ok that the first URL doesn't work, or if there is an issue there I should correct, and if so then how to correct it

Thanks!

John Mitchell
Posts:3478



07/30/2007 11:21 AM  
It does look like you have a problem, unfortunately that error is very generic.

If you can login as host (super user) and then go to Admin > Event Viewer you may be able to find the error with more information.
sonalij
Posts:24



07/30/2007 11:30 AM  

Ok this is the error log (sorry I'm super new to this and don't fully understand it):

AssemblyVersion: 04.05.03
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /DotNetNuke/ScriptResource.axd?d=Kl-vGywZ33j2jjMgWKzin2Gs2QUbk3gzQHMJcUm4UEyV0qctSeR-U7-uSv8r2467WiaWkL1Ys9E1&t=633202841841127375
AbsoluteURL: /DotNetNuke/ScriptResource.axd
AbsoluteURLReferrer: http://localhost/dotnetnuke/Home/tabid/36/ctl/Module/ModuleId/370/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: d0d4895a-6576-48eb-85e1-a5594aefc41b
InnerException: Unhandled Error:
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Entities.Portals.PortalSettings.VerifyPortalTab
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalSettings.VerifyPortalTab(Int32 PortalId, Int32 TabId) at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
Source:
Server Name: (I cut this name out)

John Mitchell
Posts:3478



07/30/2007 11:38 AM  
This appears to be a problem with the lookup of the portal alias (related to your other question). I think if we get the portal aliases correct then this problem should go away.
sonalij
Posts:24



07/30/2007 11:45 AM  
Actually I have two separate sites/databases going.

The one called "DNN" has the portal alias issue. This question relates to the other one called "DotNetNuke". This specific site was working properly a week ago, then I left it for a few days, and now I get this issue. I can still get into the site (by typing in its full address for the home page), but then I have the other issue I posted about (WebForm_PostBackOptions is undefined).
sonalij
Posts:24



07/30/2007 2:15 PM  

So when I go to http://localhost/dotnetnuke I get the error that is show below, but if I go straight to the URL for the default page I can get in, but then have the postback error.

 

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:

<pre>[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Entities.Portals.PortalSettings.VerifyPortalTab(Int32 PortalId, Int32 TabId) +319
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +2402
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +82
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +2677
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +64</pre>

Server Error in '/DotNetNuke' Application.

Object reference not set to an instance of an object.

 

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > Object reference not set to an instance of an object



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 Performance for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

AuthorNina Meiers
Price$49.00
Product Information