Request.PhysicalApplicationPath If you have a module/handler, you can use Context.Request.PhysicalApplicatoinPath.
Ali -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Don Stanley Sent: Friday, May 13, 2005 2:31 PM To: [email protected] Subject: Re: [ADVANCED-DOTNET] How to pick up .dll path similar to MapPath in ASP.NET? Path.GetFullPath() should return a full path from a relative path. Don -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Michaeloff Sent: Thursday, May 12, 2005 11:19 PM To: [email protected] Subject: [ADVANCED-DOTNET] How to pick up .dll path similar to MapPath in ASP.NET? Hi all, I want to dynamically load a dll, and need a path to the file. Is there a clean way to pick this up? I've tried using Type.Assembly.Location where Type is a type in a dll in the same directory, but this is introducing portability problems. Basically I want something similar to HttpServerUtility.MapPath(), which returns a physical absolute path given a virtual, relative path. =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
