YAFLogo

Rambo_The_Dog
15 years ago
Hello,

I successfully setup and ran a standalone website with YAF-v1.9.4-BETA3 source code running on VS2008, framework 3.5

The forum looks great so what I'd like to do is do some integration testing with another website under a sub-folder - btw. this is a AJAX enabled, with MasterPage web site.

I believe I have all the configuration details setup and the dev site compiles correctly but when I try to navigate to my new "forum" page I get an error in /Forum.Cs line 128

int userId = YafContext.Current.PageUserID;

Null Reference Exception on PageUserID.

YafContext.Current seems to return a valid object, but I am assuming something is not getting initalized correctly as PageUserID return the null reference exception.

Any ideas?

Thanks for any input..

Dan

Sponsor
Namirna
  • Namirna
  • 50.6% (Neutral)
  • YAF Forumling
14 years ago
Did you find a way to fix it? I have the same problem.
kislay
  • kislay
  • 54.2% (Neutral)
  • YAF Forumling
14 years ago
Did you find a way to fix it?

I am having same problem when integrating yaf with Blogengine

Please help if any one got the solution

Thanks in advance

Kislay

nazre
  • nazre
  • 51.8% (Neutral)
  • YAF Forumling
14 years ago
use enableSessionState="true".It should solve your problem.

Thanks

Nazre

kislay
  • kislay
  • 54.2% (Neutral)
  • YAF Forumling
14 years ago
Thanks Nazre It's working now .I was missing enableSessionState in config

Kislay