• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 754
  • Last Modified:

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

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
ipjyo
Asked:
ipjyo
  • 2
1 Solution
 
SaedSalmanCommented:
Also you can try this:
Path.GetFileName(Application.ExecutablePath);
0
 
ipjyoAuthor Commented:
thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now