YAFLogo

ransems
  • ransems
  • 56.6% (Neutral)
  • YAF Camper Topic Starter
8 years ago
When I was testing the sample app, fresh install, running local host I clicked on the home button (app home, not forum home) I get the error (and I still get the error):

Quote:

http://localhost:51735/

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.]

YAF.Core.Services.PageElementRegister.RegisterJQuery() +109

YAF.Controls.UserLink.OnPreRender(EventArgs e) +129

System.Web.UI.Control.PreRenderRecursiveInternal() +83

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974

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

Sponsor

Zero2Cool
8 years ago
When you are debugging, do you get this error? If so, specifically what file and line is throwing the "Object reference not set to an instance of an object." ??
eric7704
  • eric7704
  • 51.2% (Neutral)
  • YAF Forumling
7 years ago
I have exactly the same problem:

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.]

YAF.Core.Services.PageElementRegister.RegisterJQuery() +68

YAF.Controls.UserLink.OnPreRender(EventArgs e) +131

System.Web.UI.Control.PreRenderRecursiveInternal() +83

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974

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

Someone please help, i do know the fix to this issue, just delete:

from default.aspx page and errors will be gone, but it is an important functions because it shows the latest post and topics on home page. Can anyone help?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
7 years ago
Originally Posted by: eric7704 

I have exactly the same problem:

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.]

YAF.Core.Services.PageElementRegister.RegisterJQuery() +68

YAF.Controls.UserLink.OnPreRender(EventArgs e) +131

System.Web.UI.Control.PreRenderRecursiveInternal() +83

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Control.PreRenderRecursiveInternal() +155

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974

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

Someone please help, i do know the fix to this issue, just delete:

from default.aspx page and errors will be gone, but it is an important functions because it shows the latest post and topics on home page. Can anyone help?

Use the latest version this issue has been fixed.