System.Assembly .Location will give you the file system path to the assembly.
The assembly itself sits in the bin directory of the application root, which
you can also get. The cs file exists only in development. (Well, you could
copy it to production, but that's not a good idea.)
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Shell/UI
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"Chung" <an*****@hotmai l.com> wrote in message
news:08******** *************** *****@phx.gbl.. .
Hi,
I am developing an asp.net application. I have create
some class method and I would like to get the folder path
of that class method. I cannot use this.Mappath("" ) to get
the path because it is not a type of *.aspx.cs. I try to
use System.Environm ent.CurrentDire ctory() but it return
c:\winnt\system 32 when I use
System.Web.Http Context.Current .Server.MapPath ("") it
returns path from the aspx file that call the class method.
I hope someone can help me on my problem.
Chung