Solved

How do we get the Application name in asp.net?

Posted on 2009-04-09
3
740 Views
Last Modified: 2012-08-14
Hi,
Could anybody tell me how to get the current application name? Is there anyway we can set it in web.config and then retrieve it from there when needed? I need to insert this application name into a table "Errors" to know which application caused this error.
Please give me any ideas! Thank you!
0
Comment
Question by:ipjyo
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
SaedSalman earned 500 total points
Comment Utility
0
 
LVL 6

Expert Comment

by:SaedSalman
Comment Utility
Also you can try this:
Path.GetFileName(Application.ExecutablePath);
0
 

Author Comment

by:ipjyo
Comment Utility
thank you
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now