System.NullReferenceException

  • Thread starter Thread starter salam
  • Start date Start date
S

salam

Hi, I have .Net version 2002 on my XP machine. i developed a C# web site
with one page. The page contains
and input type = "file" and a button
When running the application on my machine everything works fine. I deployed
the web site to a win2000 server, browsing the aspx page OK, but when
clicking on the button, I get the following error :

System.NullReferenceException: Object reference not set to an instance of an
object. at
Upload.upload.btnSend_Click(Object sender, EventArgs e)
pointing to the line when I start accessing the properties and methods of
the input of type input in my code behind.
Thanks
Salam
 
Hi,

You have to post the code, a NullReference exception means that you got a
reference to an object that does not exist.


Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top