These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

Server Error in '/' Application.

I tried to recreate your code to see if it works on my test environment,  everything executes except for the line about, 

private void FileVistaControl_Uploaded(object sender, FileVistaUploadedEventArgs e)
        {

        } 

and that is when I get error page, 


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.]
   GleamTech.Web.Controls.FileVistaControl.Page_Load(Object sender, EventArgs e) +1253
   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.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

 
z3r0c001 8/5/2008 5:03 PM
It seems the event handler function goes out of scope, please try to use static function as

private static void FileVistaControl_Uploaded(object sender, FileVistaUploadedEventArgs e) 



Cem Alacayir 8/8/2008 3:21 PM