One way you could work around this is in Application_Start, get the
Server.MapPath result and stick it in an Application variable, then you can
refer to the app var during session on end. Make sure NOT to use a Session
variable, as these are all already gone by the time you get to Session_End.
HTH.
"Andy Fish" <aj****@blueyonder.co.uk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello,
I've found that if I try to do a Server.MapPath() in the Session_End
event, it fails with an exception.
is this right? any simple way to work round it?
is there any documentation that says what you can actually do in these
global.asax routines? - I've found out that Context is set to null but it
doesn't say that in any documentation I've seen
Andy