dhj Posted July 20, 2004 Posted July 20, 2004 hi again Is there any similar feature as Server.MapPath, which can be used in vb.net Windows Applications thanks Quote
Administrators PlausiblyDamp Posted July 20, 2004 Administrators Posted July 20, 2004 Application.StartupPath will return the folder the executable is in if that is what you mean? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
dhj Posted July 20, 2004 Author Posted July 20, 2004 how can i get this when i'm in a business rules project Quote
*Experts* mutant Posted July 20, 2004 *Experts* Posted July 20, 2004 You will have to refernece the System.Windows.Forms assembly (as that is where the Application class resides). Keep in mind, that with that kind of a project type, VS.NET will give you a warning if you reference that assembly. Quote
dhj Posted July 21, 2004 Author Posted July 21, 2004 yeah it is giving me a warning is it ok. if i use system.windows.forms in a business rules project ? Quote
dhj Posted July 21, 2004 Author Posted July 21, 2004 hi i used System.Reflection.Assembly.GetCallingAssembly().Location it is working fine Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.