• Posts: 18
  • Joined: 12/06/2009
I'm running the last version of Yaf and integrate it correctly with Membership.

It all works fine, except when I try to logout when I'm viewing a user profile. In other pages, for example viewing posts, the logout works ok.

The error is:

Object reference not set to an instance of an object.

Line 149: if ( ShowSignature && PageContext.BoardSettings.AllowSignatures && DataRow ["Signature"] != DBNull.Value && DataRow ["Signature"].ToString().ToLower() != "<p>&nbsp;</p>" && DataRow ["Signature"].ToString().Trim().Length > 0 )Line 150: {
Line 151: return DataRow["Signature"].ToString();

These lines belong to c:\yaf\YAF.Controls\MessagePostData.cs

I'm not sure about these lines, it seems to be about the user signature.

I tried removing everything and just leave a "return null" in the method and it seems to work. But I'd like to know if I'm not breaking anything else with this.

Thanks a lot for the help.

Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved