Mystery Error

Discussion in 'ASP .Net' started by Todd Plambeck, Jul 15, 2003.

  1. 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
     
    Todd Plambeck, Jul 15, 2003
    #1
    1. Advertising

  2. Hi Todd,

    >>>> ViewState("UrlReferrer") = Request.UrlReferrer.ToString()

    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.

    "Todd Plambeck" <> wrote in message
    news:%...
    > 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
    >
    >
    >
    >
    >
     
    Victor Garcia Aprea [MVP], Jul 15, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. valentin tihomirov

    another array ranges mystery

    valentin tihomirov, Jun 18, 2005, in forum: VHDL
    Replies:
    2
    Views:
    481
    Mike Treseler
    Jun 18, 2005
  2. Amelyan
    Replies:
    4
    Views:
    443
    B Amelyan
    Jun 3, 2005
  3. Amelyan

    Mystery ASP.NET Error

    Amelyan, Jun 3, 2005, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    115
    Visar Gashi, MCP
    Jun 8, 2005
  4. Ruby Ronin

    Timeout::Error mystery

    Ruby Ronin, Nov 29, 2007, in forum: Ruby
    Replies:
    2
    Views:
    120
    Ruby Ronin
    Dec 10, 2007
  5. Don Lancaster

    Need help with mystery error

    Don Lancaster, Mar 14, 2010, in forum: Javascript
    Replies:
    1
    Views:
    145
    Dr J R Stockton
    Mar 15, 2010
Loading...

Share This Page