Quote:
Server Error in '/cpthandler/processUploads' 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:
Line 392: Next files
Line 393:
Line 394: mainHTML.Text = mainHTML.Text & "<br /><br /><a href='../uploadFiles/file_upload.aspx'>Click here to upload more files</a>"
Line 395: objRS = Nothing
Line 396: objConn = Nothing
Source File: G:\WebServer\cpthandler\processUploads\processUpload.aspx.vb Line: 394
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
processUploads.processUpload.Page_Load(Object sender, EventArgs e) in G:\WebServer\cpthandler\processUploads\processUpload.aspx.vb:394
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0
I have this at the top of my code: