Application_error Server or HttpContext.Current.Server confusion

I am confused whether to use

Server.GetLastError

or

HttpContext.Current.Server.GetLastError

in the event Application_Error.

Can someone please help me sort out the differences between the two?

Thank,

Aj

+3
source share
1 answer

Server.GetLastError HttpApplication. . ASP.NET Server HttpContext (, HttpApplication Page). HttpApplication, , HttpContext, Server. Page UserControl , HttpContext , .

+5

All Articles