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

c# app id

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
thready
Asked:
thready
1 Solution
 
s_chilkuryCommented:
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
 
anarki_jimbelCommented:
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
 
threadyAuthor Commented:
Thank you! :-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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