T
teo
I need to use the 'Server.MapPath' function
in the 'Session_End' event of the Global.asax file
(to reach a folder and the clean some temporary files up),
but it doesn't work:
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Dim myPath As String = (Server.MapPath("../public/MyFolder/")
End Sub
Note:
when I precompile the app,
the Global.asax file will be inserted in the BIN folder
(and not in the usual root folder)
so it may be a further problem
Any idea?
in the 'Session_End' event of the Global.asax file
(to reach a folder and the clean some temporary files up),
but it doesn't work:
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Dim myPath As String = (Server.MapPath("../public/MyFolder/")
End Sub
Note:
when I precompile the app,
the Global.asax file will be inserted in the BIN folder
(and not in the usual root folder)
so it may be a further problem
Any idea?