Request.UrlReferrer.ToString() returns a error

Discussion in 'ASP.NET 2.0' started by tom987123, May 19, 2007.

  1. Request.UrlReferrer.ToString() returns a error


    This code runs fine on my local machine but fails on the webhost server.
    Any ideas why ???


    Exception Details: System.NullReferenceException: Object reference not set
    to an instance of an object.

    Source Error:

    Line 73:
    Line 74: ' Store URL Referrer to return to portal
    Line 75: ViewState("UrlReferrer") =
    Request.UrlReferrer.ToString()
    Line 76:

    Source File: ..\DesktopModules\EditEvents.aspx Line: 75




    I think some firewall issue. Please help me

    Post Edited By Moderator (mjp) : 5/21/2007 8:34:07 PM GMT
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    This property will be blank if there's no referrer.





    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page