Server.GetLastError() return null

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christopher

    Server.GetLastError() return null

    Try using the Application_Err or() event in Global.asax.
    The context of the error will be available here. Your
    application is handling the error, and thus there is no
    LastError to Get.

    hth,
    -Christopher

  • terry

    #2
    Server.GetLastE rror() return null

    Using Application_Err or() does work. Thank-you!!!

    What's confusing though is that I am simply trying to work
    through an example on page 292 in "Developing WEB
    Applications with Microsoft Visual Basic .NET and Visual
    C# .NET". This example works with Server.GetLastE rror().
    Perhaps book is wrong?

    [color=blue]
    >-----Original Message-----
    >Try using the Application_Err or() event in Global.asax.
    >The context of the error will be available here. Your
    >application is handling the error, and thus there is no
    >LastError to Get.
    >
    >hth,
    >-Christopher
    >http://weblogs.asp.net/CFrazier
    >.
    >[/color]

    Comment

    Working...