Solved

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

Posted on 2009-04-09
3
745 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
ID: 24110316
0
 
LVL 6

Expert Comment

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

Author Comment

by:ipjyo
ID: 24110760
thank you
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

726 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