Mystery Error

T

Todd Plambeck

I have a website with about 100 users. They all seem to work fine except
one. When they go from the main page to a page containing a webgrid
containing delivery addresses, an error is thrown. Here's the code that
causes the error:

' Store URL Referrer
ViewState("UrlReferrer") = Request.UrlReferrer.ToString()

Here's the error description:Object reference not set to an instance of an
object.

They are using IE 6 and it happens on all the PC's in their office. Any
ideas what would cause this not to work on just this one customer?

Thanks,

Todd
 
V

Victor Garcia Aprea [MVP]

Hi Todd,
You should check that UrlReferrer is not null before trying to call
ToString() on it.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top