Server.GetLastError() return null

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

  1. #1

    Default Server.GetLastError() return null

    Try using the Application_Error() 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
    [url]http://weblogs.asp.net/CFrazier[/url]
    Christopher Guest

  2. Similar Questions and Discussions

    1. CGI.pm form query sometime return null value
      I am using CGI.pm, and getting the parameters similiar to the followings, use CGI::Carp qw(fatalsToBrowser); use CGI qw(:all); : my $task =...
    2. Error Object/GetLastError
      Can someone clue me in as to why the following code for Error Object does not work. The errors get caught, but no information exists in the Error...
    3. xpath following-sibling - null return looks for object reference?
      I'm providing the following syntax in hopes someone could tell me why I get an object reference error on the second one. The first one works, using...
    4. Return a NULL dataset from a webservice ??!
      When my webservice returns a null dataset my application crashes. null exception error. Has anyone experianced this ? and wondering if anyone has a...
    5. #19841 [Opn->Fbk]: RPC stored procedure with many columns return null value
      ID: 19841 Updated by: sniper@php.net Reported By: tonyho at fairex dot com -Status: Open +Status: ...
  3. #2

    Default Server.GetLastError() return null

    Using Application_Error() 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.GetLastError().
    Perhaps book is wrong?

    >-----Original Message-----
    >Try using the Application_Error() 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
    >[url]http://weblogs.asp.net/CFrazier[/url]
    >.
    >
    terry 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