Is there anyway of finding the application name from a class I'm trying to build a configuration setting class (like the one in the full framework). It all works fine if it is called from the application .exe but if I call it from a class which has been created by the exe it does not work. The reason being that I get the path of the calling assembly and then add .Config to it get the settings file eg
assemblyPath = Assembly.GetCallingAssembly().GetName().CodeBase; configFileURL = assemblyPath + FILE_EXT;Is there any other way of getting the application filename, either through a specific method or by walking up the call stack.
Thanks in Advance.
Andy Hough

Getting the calling application path
Dottj
Andy,
This should give you what you want:
HTH
Dan
.net sukbir
Andy,
My understanding is that you want to get the path of the original executable that loads a class whether or not that class is in the executables assembly. For instance, given
then, AA.LoadingAssembly, AB.LoadingAssembly, and BB.LoadingAssembly should return the path to assembly A. Is that correct
Dan
dreameR.78