Search
Thursday, March 11, 2010 ..:: Blendblog.net ::.. Register  Login
 Bloggers Minimize

 Print   
 Sponsors Minimize

 Print   
 Users Online Minimize
Membership Membership:
Latest New User Latest: maxuser
New Today New Today: 0
New Yesterday New Yesterday: 0
User Count Overall: 18

People Online People Online:
Visitors Visitors: 0
Members Members: 0
Total Total: 0

Online Now Online Now:

 Print   
 Welcome to blendblog.net! Minimize

If you are a developer or designer who is creating cutting edge user interface experiences using Microsoft Expression Blend you've just found a great resource!  The purpose of this site is to share our experience with this brand new product.  As with any new piece of software there is a ton to discover.  Bugs will be revealed and workarounds discovered, hopefully this can be a resource to share in the discovery process!

While this site will focus largely on Expression Blend, it will also encompass WPF, Visual Studio, Silverlight, and other .net 3.5 technologies as they relate to the creation of great software.

Please login using your Microsoft LiveID or register a new account.  Doing so will let you comment on any of the blog entries on the site.  We look forward to helping you in your endeavors as well as you helping others in theirs!  We'd love to have more bloggers on our site...if you are interested please register and contact us!


 Print   
 App.path in .net Minimize
Location: BlogsSean Cullinan    
Posted by: Sean Cullinan 11/3/2008 2:14 PM

In vb6 we had the easy to use app.path function that returned to us the path of the application that we were running.  In .net I always used system.reflection.assembly.getexecutingassembly.location to get this.  While this worked in winforms, it always returned the location of the framework .dll's for web apps.

I found the solution and wanted to note it here: System.AppDomain.CurrentDomain.BaseDirectory() will return the proper location for web apps.

I like to store my connection strings in UDL files sometimes and this lets me put them in the bin directory of my website and distribute them without having my users edit web.config.  Now I can do this.

Sean

Permalink |  Trackback

Comments (2)   Add Comment
Re: App.path in .net    By astoria on 1/6/2010 8:07 AM
Thank you for sharing! Réparé et que - cela fonctionne pour moi! <br><a href="http://www.jouercasino.eu">jouer casino</a>

Re: App.path in .net    By <a href="http://www.jouercasino.eu"&g on 1/6/2010 8:07 AM
merci!


Your name:
Title:
Comment:
Add Comment   Cancel 

  
 Search Minimize

 Print   
 Archive Minimize

 Print   
 Blendblog Survey Minimize
Our next client application will be written using:




Submit Survey  View Results

 Print   
Copyright 2010 by blendblog.net   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2010 by DotNetNuke Corporation