I am trying to upload a file to the server using code like<BR><BR>txtFile.PostedFile.SaveAs(somefilename)<BR><BR>and I get the exception: "Object reference not set to an instance of an object"<BR><BR>I didn't have this problem in another web that has the same code. Can someone tell me what is causing this error?.Problem solved.