YAFLogo

SteBruBra
  • SteBruBra
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
7 years ago
Hello,

http://www2.astrotreff-deep-sky.de/portal.aspx 

In the Portal, we had integrated the YafHeader.

Everything works fine except the logout. Getting this 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: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

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: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]
   YAF.Controls.YafHeader.LogOutClick(Object sender, EventArgs e) +187
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +142
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +147
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6015

Does anybody know, what to do? Thanks!!!

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
7 years ago

Hello,

http://www2.astrotreff-deep-sky.de/portal.aspx 

In the Portal, we had integrated the YafHeader.

Everything works fine except the logout. Getting this 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: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

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: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]
   YAF.Controls.YafHeader.LogOutClick(Object sender, EventArgs e) +187
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +142
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +147
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6015

Does anybody know, what to do? Thanks!!!

Originally Posted by: SteBruBra 

The YafHeader really works only inside a forumpage. You get the error because the DialogBox Control is not found on your page.