YAFLogo

srelliott
  • srelliott
  • 56% (Neutral)
  • YAF Camper Topic Starter
14 years ago
I'm not sure what's wrong. I went through a fresh install for 1.9.5 RC1 and it said it was successful. But when I goto the forum and try to access the admin page, I get an error:

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:

Line 34:

Line 35:

Line 36: <%# YafBBCode.EncodeHTML( YafUserProfile.GetProfile( Eval("UserName").ToString() ).Location ) %>

Line 37:

Line 38:

I'm also unable to view a post, or edit the user profile. It seems like this must be membership related? It's a fresh install though.

Sponsor
doxa123
  • doxa123
  • 100% (Exalted)
  • YAF All-the-Time YAF Version: 3.1.14
14 years ago
Did you change url rewriting? for example yetanotherforum.net/yaf_ like this yetanotherforum.net/yourForumName_ ...

if there is problem on regex or something else, you can't access anywhere...


srelliott
  • srelliott
  • 56% (Neutral)
  • YAF Camper Topic Starter
14 years ago
URL Rewriting is set to false in the app.config (by default).

It allows me to post a new topic, but as soon as I post it, it gives me the Object reference not set to an instance of an object error page. Then I go to the forum and the new topic is listed, but if I go to view it, I get the reference error again. It looks like the URL's are correct, as it's putting the /Forum/ in there like it should.

And I get the error mentioned in my first post if I try to access the admin area, with the username I created during setup (admin). It goes to the URL /Forum/default.aspx?g=admin_admin

srelliott
  • srelliott
  • 56% (Neutral)
  • YAF Camper Topic Starter
14 years ago
I just upgraded to 1.9.5 RTW and I'm still not able to see the admin index (yaf_admin_admin.aspx) without getting the error mentioned in the first post. However, I am able to browse around other areas of the admin area if I go into the "Host" link first, then browse around the admin area from there.

Also, still can't view a post...

srelliott
  • srelliott
  • 56% (Neutral)
  • YAF Camper Topic Starter
14 years ago
I've figured out what's causing the problem. It's something to do with the web.config in the root site. I have this forum setup in the "Forum" folder, which is setup as an application, and didn't think the two web.config's would conflict, but apparently they do. If I change the root site web.config to web.config.txt (to hide it), the forum works fine. Now I just need to figure out what the issue is...
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago

I've figured out what's causing the problem. It's something to do with the web.config in the root site. I have this forum setup in the "Forum" folder, which is setup as an application, and didn't think the two web.config's would conflict, but apparently they do. If I change the root site web.config to web.config.txt (to hide it), the forum works fine. Now I just need to figure out what the issue is...

Originally Posted by: srelliott 

My guess is that it's related to your ASP.NET membership provider configuration.

srelliott
  • srelliott
  • 56% (Neutral)
  • YAF Camper Topic Starter
14 years ago
For anyone having a similar problem, I solved it by setting the root web.config to disable inheritance.

...