J Jon Apr 20, 2007 #1 Hello all, How do you get a folder in your web application from a calling assembly? Thanks, Jon
L Laurent Bugnion, MVP Apr 20, 2007 #2 Hi, Hello all, How do you get a folder in your web application from a calling assembly? Thanks, Jon Click to expand... You mean, how do you get the folder in which the assembly is located? If yes, I do this: FileInfo fileAssembly = new FileInfo( myAssembly.Location ); and then: fileAssembly.Directory; HTH, Laurent
Hi, Hello all, How do you get a folder in your web application from a calling assembly? Thanks, Jon Click to expand... You mean, how do you get the folder in which the assembly is located? If yes, I do this: FileInfo fileAssembly = new FileInfo( myAssembly.Location ); and then: fileAssembly.Directory; HTH, Laurent