Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b]App.Path with c#[/b]

Status
Not open for further replies.

PeterOcean

Programmer
Mar 26, 2002
27
0
0
CA
I am looking for the equivilant of the vb.6 App.Path.

I have an ASP.NET project that references a dll. I want that dll to read information from an XML file that is on the same file path as the dll. I have tried AppDomain.CurrentDomain.BaseDirectory; and System.Reflection.Assembly.GetExecutingAssembly().Location;, but that gives me the path of the executable and not the path of the dll.

Has anyone got any ideas?

Thanks Peter

 
Application.StartupPath

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top