Re: [Global.asax] function Server.MapPath not available ?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Mark,
I tried

the 'public' folder is here
www.mySite.it/public/myFolder
and
my .aspx page folder is here
www.mySite.it/PersonalApp/Default.aspx
also
the InProc is set on

unfortunately
'Server.MapPath' and 'Request.ApplicationPath'
from the Session_End
both return an empty string

- - -

Because Server.MapPath on the Session_Start does work ,
I tried to store the resulting string in a variable
to use it in the Session_End ,
but it seems that
the Global.asax file manages variable differently from usual
and it 'looses' its content
and nothing arrives in the Session_End event

- - -

I 'm stumped
(I'm performing my tasks
on the Session_ Start event,
but I don't like it because it consumes time)


.



Relevant Pages

  • RE: Error: Cannot use a leading .. to exit above the top director
    ... I got the same error code using the Starter Kit that comes with VWD Express ... > added a linkbutton and referenced one of the aspx pages in the 'content' ... > Microsoft Online Support ... > | 'content' folder. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Error: Cannot use a leading .. to exit above the top directory.
    ... ASP.NET 2.0 web application which contains some asp.nets in root app dir ... added a linkbutton and referenced one of the aspx pages in the 'content' ... | 'content' folder. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Error casting User.Identity to WindowsIdentity
    ... The folder is created inside ... Private Shared Sub DeleteDir ... OK, here's my ImpersonateUser class, defined in ImpersonateUser.vb:- ... I have tried passing the identity object from code behind of the aspx page ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: subfolders in asp.net projects
    ... We've decided that there are going to be a lot of related aspx pages that we'd like to have in a subfolder for organizational reasons. ... I created the new folder in the project and "dragged" the aspx file into this new folder. ... When you move the files, essentially all it is saying is that 'VSS is not going to delete the files in the old location; and you will lose all history, etc.', if I remember right. ...
    (microsoft.public.dotnet.framework.aspnet)
  • subfolders in asp.net projects
    ... several aspx pages in the project. ... I created the new folder in the project and ... Now that I have the files in the subfolder in VS, ... I do a redirect in my custom base ...
    (microsoft.public.dotnet.framework.aspnet)