Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8803363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:19:18+00:00 2026-06-14T01:19:18+00:00

We have an internal error reporting system (inside our functions dll) and one of

  • 0

We have an internal error reporting system (inside our functions dll) and one of the info pieces we send is the name of the application that caused it.

Current code:

string applicationname= Assembly.GetCallingAssembly().GetName().Name;

The problem is when the error is send from one of our websites as it sends application names like “App_Code.6p_c415d”.

One possible way was determining if the app is an executable or a website dinamically (how do we do that?) and in the case of being a website get the folder containing it or so…

But if you have better ways we are open to any idea ^^

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:19:20+00:00Added an answer on June 14, 2026 at 1:19 am

    We ended up creating the following function and it works fine:

    public static string getApplicationName()
    {
        return string.IsNullOrEmpty(HttpRuntime.AppDomainAppId)?
            Assembly.GetEntryAssembly().GetName().Name : 
            new DirectoryInfo(HttpContext.Current.Server.MapPath("")).Name;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an internal asp.net forms app where one page is essentially a WYSIWYG
I have an internal WPF client application that accesses a database. The application is
We have an internal ASP.NET MVC application that requires a logon. Log on works
I have an internal web application, that is IE specific, and uses a lot
The Jelly module throws a 500 internal error. I have no idea why it
I have a 32 bit .Net application winform that invokes a C++ dll. We
I have a bunch of people reporting an error that I cannot reproduce. When
I have Flex/Parsley/Blazeds application deployed on weblogic 9.x. The following error appears in the
Please help me in joomla 1.5. I have Internal Server Error in my website,
I have this error NOTICE: UNDEFINED VARIABLE: LOGO IN C:\WAMP\WWW\SITE\TOOLS\SMARTY\SYSPLUGINS\SMARTY_INTERNAL_DATA.PHP ON LINE 291 CALL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.