path to dll currently executing

J

John Grandy

How would I obtain the path to the DLL which contains the code which is
currently executing ?

This is a Web Services project, and so the \bin\ folder is obviously at a
different path design-time v run-time.

Thanks.
 
F

Family Tree Mike

How would I obtain the path to the DLL which contains the code which is
currently executing ?

This is a Web Services project, and so the \bin\ folder is obviously at a
different path design-time v run-time.

Thanks.

System.Reflection.Assembly.GetExecutingAssembly().Location.ToString();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dll Path 4
How to load an assembly? 4
Language strings 7
executing threads at the same time 2
.dll reference path change? 2
DLL Outputg path problem 3
asp.net and dllimport 1
DllImport path issue 6

Top