YAFLogo

ankit
  • ankit
  • 50.2% (Neutral)
  • YAF Camper Topic Starter
11 years ago
Hi,

I am integrating YAF into my existing website using Microsoft Visual Studio 2010 and .Net 4.0 framework. I am having problem of "Object reference not set to an instance of an object" when I am implementing YAF using steps given on your website by maing "forum" folder in our existing website. My error is as under when I am trying to add another page in forum folder using my own master page.

=======================================

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.Modules.PagePopupForumModule.InitAfterPage() +76

YAF.Modules.SimpleBaseForumModule.ForumControl_AfterForumPageLoad(Object sender, YafAfterForumPageLoad e) +36

System.EventHandler`1.Invoke(Object sender, TEventArgs e) +0

YAF.Forum.OnLoad(EventArgs e) +1809

System.Web.UI.Control.LoadRecursive() +54

System.Web.UI.Control.LoadRecursive() +145

System.Web.UI.Control.LoadRecursive() +145

System.Web.UI.Control.LoadRecursive() +145

System.Web.UI.Control.LoadRecursive() +145

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

=======================================

Please help me as soon as possible.

Thanks

-Ankit Chhelavda

[M] +91-9909894939

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
11 years ago
This is a bug in that Version. If you know how to compile yaf yourself you could grab the latest source code from the CodePlex Repository and compile the fixed version yourself.

Or you download the YAF.SampleWebApplication - C# Version  from the Documentation Page 

And extract the updated dlls (excluding the YAF.SampleWebApplication.dll which you don't need) from that Version (it the 1.9.6.2 Version including this fix for the bug above).

ankit
  • ankit
  • 50.2% (Neutral)
  • YAF Camper Topic Starter
11 years ago
Hi, tha_watcha

Thanks for the reply.

I have downloaded the sample webapplication prepared by you but still in that also I am getting same error in that application while integrating master page.

How should I implement it, is there any other way?

Thanks in advance.