Solved

c# app id

Posted on 2014-01-07
3
372 Views
Last Modified: 2014-01-07
Hi Experts,

I'm trying to find the c# app id that my application will get, can't find it.   Where is it?

I need it to plug into windows to configure a certificate for HTTPS to get HttpListener working.

Thanks,
Mike
0
Comment
Question by:thready
3 Comments
 
LVL 9

Accepted Solution

by:
s_chilkury earned 500 total points
ID: 39763211
Use System.Reflection to get the same.

stackoverflow.com/questions/502303/how-do-i-programmatically-get-the-guid-of-an-application-in-net2-0

And another way is ApplicationSecurityInfo class :

http://msdn.microsoft.com/en-us/library/system.applicationid.aspx
0
 
LVL 29

Expert Comment

by:anarki_jimbel
ID: 39763293
If you are talking about process ID you may use the following code:

        private void button9_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process pro = System.Diagnostics.Process.GetCurrentProcess();

            MessageBox.Show(pro.Id.ToString() + " / " + pro.ProcessName + " / " +pro.ToString());
        }

Open in new window

0
 
LVL 1

Author Closing Comment

by:thready
ID: 39763516
Thank you! :-)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

19 Experts available now in Live!

Get 1:1 Help Now