?
Solved

c# app id

Posted on 2014-01-07
3
Medium Priority
?
473 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Accepted Solution

by:
s_chilkury earned 2000 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 30

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

770 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