Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by vwhite

  1. vwhite

    Session variables in Application_onError

    i found this http://www.syncfusion.com/FAQ/aspnet/WEB_c9c.aspx#q45q which states that the session object is not available in the Application_OnAuthenticateRequest handler inside global.asax. I wonder if it is the same for the application_onerror event? Vicky.... "I used to have a handle on...
  2. vwhite

    Session variables in Application_onError

    I am back I am still trying to fix this issue HttpContext.Current.Response.Write(HttpContext.Current.Session) shows nothing and HttpContext.Current.Response.Write(HttpContext.Current.Session.Count & "<BR>") gives the Object reference not set to an instance of an object. error. Don't...
  3. vwhite

    Session variables in Application_onError

    sorry mate i have to go now and I will not be back infront of a computer for a week (yeah!) thanks for all your help.... when I get back i will keep trying to figure it out.... Vicky.... "I used to have a handle on life...then it broke
  4. vwhite

    Session variables in Application_onError

    tried putting HttpContext.Current.Response.Write(HttpContext.Current.Session.Count) in the page_load of an aspx file and it displays fine Vicky.... "I used to have a handle on life...then it broke
  5. vwhite

    Session variables in Application_onError

    ok I have put all the code in a code behind file, which works until I add the HttpContext.Current.Response.Write(HttpContext.Current.Session.Count) and I get the same error again... Vicky.... "I used to have a handle on life...then it broke
  6. vwhite

    Session variables in Application_onError

    Object reference not set to an instance of an object. do you mean creating a code behind file for the global.asax file? Vicky.... "I used to have a handle on life...then it broke
  7. vwhite

    Session variables in Application_onError

    no error - but also nothing is displayed. Vicky.... "I used to have a handle on life...then it broke
  8. vwhite

    Session variables in Application_onError

    thanks for sticking with me here... HttpContext.Current.Response.Write("ASD") works fine Vicky.... "I used to have a handle on life...then it broke
  9. vwhite

    Session variables in Application_onError

    I get the same error Object reference not set to an instance of an object Excuse my ignorance - but I don't know how to mark it for debuggging. I have to use Dreamweaver and I have not worked out how to do that. I have a try, catch block - which shows me the error. I test be taking the line...
  10. vwhite

    Session variables in Application_onError

    yep any session variable... Vicky.... "I used to have a handle on life...then it broke
  11. vwhite

    Session variables in Application_onError

    it dies as soon as it hits Dim o As Object = HttpContext.Current.Session.Item("client_id") with the same error message Object reference not set to an instance of an object. Vicky.... "I used to have a handle on life...then it broke
  12. vwhite

    Session variables in Application_onError

    I am certain that the error occurs on that line and I know that the session variable exists as I am using it throughout the application. I have also tried Dim ClientID as string = HttpContext.Current.Session("client_id").ToString and I get the same error If try Dim ClientID as string =...
  13. vwhite

    Session variables in Application_onError

    Hello all, I have a procedure in Application_onError in the global.asax file that sends an email to the Administrator and then redirects to an error page. In the email it also sends some information that has been retreived from session variables. This used to work fine. Now it doesn't - the...
  14. vwhite

    Error Handling

    That tentatively seems to work although I am really unsure why the system has now decided to run the application_onerror event now that all it does is the Server.Transfer. Previously I had it sending an email then doing a Server.Transfer However - from what I read I thought that the order of...
  15. vwhite

    Error Handling

    I seem to be having an awful lot of trouble with error handling in ASP.NET when it should be pretty simple. I have an Application_OnError Sub in the Global.asax file that sends the error message to me then redirects to the generic error page. I also have the Custom Errors turned on in the...

Part and Inventory Search

Back
Top