Object references not...

asp.net Tehrān, Iran
  • 14 years ago

    Hello guys,

    I'm using FileUpload control in my project. But I get an error below:

    "Object reference not set to an instance of an object."

    I can't use UploadFile control in my project. But that works on my others project.

    Thanks in advanced

  • 14 years ago

    Hi Mulish.,

      Have u checked that all the sessions Variable are assigned at the time ..


  • 14 years ago

    Hi chezhian_in05,
    cheers man for your reply. that was my mistake. I must use "HasFile" instead "PostedFile.CurrentLenght = 0"

    Thanks again Wink [;)]

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone” - Bjarne Stroustrup