I
IDC
Hi,
I have a problem accessing files in my ASP.NET 3.5 project after I publish
it. When I load a page for the first time Request.PhysicalApplicationPath
returns the correct directory (C:\inetpub\wwwroot\...) but on reloading the
page (or accessing the same page with different parameters) I end up getting
c:\windows\system32\inetsrv\...
Of course File.Exists() fails for that directory. Is there a way (other than
hardcoding) to always get the real physical application path
(C:\inetpub\wwwroot\...) so I can check it's subdirectories for necessary
files?
Thanx.
I have a problem accessing files in my ASP.NET 3.5 project after I publish
it. When I load a page for the first time Request.PhysicalApplicationPath
returns the correct directory (C:\inetpub\wwwroot\...) but on reloading the
page (or accessing the same page with different parameters) I end up getting
c:\windows\system32\inetsrv\...
Of course File.Exists() fails for that directory. Is there a way (other than
hardcoding) to always get the real physical application path
(C:\inetpub\wwwroot\...) so I can check it's subdirectories for necessary
files?
Thanx.