Using MapPath in a C# class project
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I have a class that is called by an ASP.Net project. The class needs to use MapPath to return the physical location of various files. However, when called from the class, everything is returned relative to the absolute root of the web, not it's actual physical location. This seems to work ok when called directly from the ASP.Net project, just not the class (which is only referenced by ASP.Net). Has anyone figured out how to do this? Especially when using virtual directories...