Error: System.NullReferenceException (upload and

Results 1 to 2 of 2

Thread: Error: System.NullReferenceException (upload and

  1. #1
    Join Date
    Dec 1969

    Default Error: System.NullReferenceException (upload and

    Hi! I&#039;m trying to upload file and save it into "Temp" folder.<BR>But I&#039;m encounter the error:<BR><BR> Object reference not set to an instance of an object. <BR> Exception Details: System.NullReferenceException: <BR> Object reference not set to an instance of an object.<BR><BR>I have imported the ref. Imports System.IO<BR> Imports System.Text<BR><BR>But still encounter the same error. <BR><BR>This is my codes:<BR>LOCAL_ROOT_TEMP = Server.MapPath("Temp")<BR>fileAttachment.PostedFil e.SaveAs(LOCAL_ROOT_TEMP & "\" & FileSave)<BR><BR>Please help. thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Error: System.NullReferenceException (upload

    Did you get a line number in the error message? That would help a lot to know exactly what line was causing it to puke.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts