SatyaV
February 28th, 2005, 04:29 PM
My app has to cleanup some directories when a session ends. For this I need to find the physical location of a dir under the webapp's root location. Normally, on a page you can use Server.MapPath(pathname) to get this info.
However, this does not work in the Global.asax Session_End method. The code compiles, but a runtime error occurs - "Server operation is not available in this context." Any ideas on how to fix this?
Thanks.
However, this does not work in the Global.asax Session_End method. The code compiles, but a runtime error occurs - "Server operation is not available in this context." Any ideas on how to fix this?
Thanks.