Welcome Guest Search | Active Topics | Log In | Register

Object reference not set to an instance of an object on postback Options · View
jattwood
#1 Posted : Friday, January 11, 2008 5:36:26 PM

Rank: YAF Forumling


Joined: 1/11/2008
Posts: 4
Location: toronto
Just installed version YAF-v1.9.1.6. The forum seems to be running, however, if I try to login as admin, on postback I get this 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:

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.pages.ForumPage.CheckRequestValidity(HttpRequest request) +50
yaf.pages.ForumPage.ForumPage_Load(Object sender, EventArgs e) +88
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Any ideas??

Thanks in advance...
jattwood
#2 Posted : Friday, January 11, 2008 5:41:38 PM

Rank: YAF Forumling


Joined: 1/11/2008
Posts: 4
Location: toronto
Here is a more detailed 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 119: // ip with
Line 120: // deny access if POST request comes from other server
Line 121: if ( request.HttpMethod == "POST" && request.UrlReferrer.Host != request.Url.Host )
Line 122: {
Line 123: Forum.Redirect( Pages.info, "i=4" );


Source File: C:\Protean\be\forum\pages\ForumPage.cs Line: 121

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
yaf.pages.ForumPage.CheckRequestValidity(HttpRequest request) in C:\Protean\be\forum\pages\ForumPage.cs:121
yaf.pages.ForumPage.ForumPage_Load(Object sender, EventArgs e) in C:\Protean\be\forum\pages\ForumPage.cs:142
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Jaben
#3 Posted : Friday, January 11, 2008 11:09:13 PM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,950
Location: Honolulu, HI
It's due to your installation of ZoneAlarm or FireFox add-on that removes your referrer information.

Removal of this referrer information breaks standard HTTP protocol specifications as a POSTBACK should have a referrer.
"When you are grateful, fear disappears and abundance appears”."

raysot
#4 Posted : Friday, August 15, 2008 7:51:02 AM

Rank: YAF Forumling


Joined: 11/14/2004
Posts: 8
Location: Seattle
I am hoping you can help with my own "Object Reference error"

I have been running YAF for years and just a few days ago it started throwing this error:
(Believe me when I say that absolutely nothing changed on my server to elicit this.. I was notified by a customer that "...hey! Your forum is down!"Wink

My version is about a year old, maybe 2. I have my SQL Server 2005 locked down solid. ( I actually removed dbo from the account permissions and only established a database role with Execute / Select permissions, so there's really no way someone could have injected anything.. (I hope...) I restored the same database on another server of the same version and it works fine.

Running IIS on Windows 2003 Enterprise Server. SQL Server Enterprise 2005.

Site is: www.EllieAvionics.com/EllieForums

=========================================================================
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.Data.get_GetAuthType() +62
yaf.pages.ForumPage.ForumPage_Load(Object sender, EventArgs e) +648
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

Users browsing this topic
Guest
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.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.139 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET