Object reference not set to an instance of an object.

Nov 7, 2008 at 6:24 PM

Hi,

when i upload my files to my host my application working 1 times.But when i call again i take this message and dont work again.İf i upload again my app working 1 times too.How can i solve this problem? Pls help

Server Error in '/' Application.

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.]   _Default.Page_Load(Object sender, EventArgs e) +746   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33   System.Web.UI.Control.OnLoad(EventArgs e) +99   System.Web.UI.Control.LoadRecursive() +47   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

Nov 7, 2008 at 6:53 PM
if find a problem when app worked second times   

 Session["facebook_userId"] = _fbService.uid; this line have problem.
_fbService.uid is coming 0 


_fbService.CreateSession(authToken);
            Session["facebook_session_key"] = _fbService.SessionKey;
            Session["facebook_userId"] = _fbService.uid;
            Session["facebook_session_expires"] = _fbService.SessionExpires;