Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Renaming file causes error "Object reference not set to an instance"

Status
Not open for further replies.

may1hem

Programmer
Jul 28, 2002
262
GB
I have an ASP.net (VB.net) web page which uses an include file and an xml file.

I called the page "default_.aspx" whilst I was making changes, and the xml file "products_.xml". The include file is called "rightcol.ascx". I amended the code as I needed, and it all works fine.

Then to make the page live on my web site I renamed them to "default.aspx" and "products.xml". The include file's name is left unchanged.

But then it produces an "Object reference not set to an instance of an object" error.

Why might this happen?
 
post the entire stacktrace, not just the error message. this is the starting point anytime you trouble shoot exceptions.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Ah, thanks for your suggestions, the problem lay with the querystring.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top