Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Mystery Error

    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 Guest

  2. Similar Questions and Discussions

    1. Here's a mystery
      :confused; For some time now I have been having problems with my computer radomly rebooting. I began investigating the problem and have come to the...
    2. GetRows Mystery
      I'm facing an odd behavior in using the GetRows Method. I'm not sure what's causing it because it has been working fine until now. I have a sproc...
    3. Mystery to ME! -Solution
      I finally found a solution to my delimena. Director sees the frame labels as strings not integers. My code was looking for an integer. The labels...
    4. Mystery to ME!
      Update - I've narrowed the problem down some. go to label(gFinalExam])deleteAt gFinal, 1 I've removed all the if statements and am checking this...
    5. OS 9.0.2 mystery
      Daughter was "helping" grandma with grandma's OS 9 notebook - changing this and changing that so it would "work better." Now grandpa who has been...
  3. #2

    Default Re: Mystery Error

    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:
    [url]http://obies.com/vga/blog.aspx[/url]
    To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
    and not by private mail.

    "Todd Plambeck" <tplam@nospamflash.net> wrote in message
    news:%23AUPU3nSDHA.632@TK2MSFTNGP12.phx.gbl...
    > 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] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139