Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Security Exception Request Failed When Launching An EXE From Web

Posted on 2006-04-26
Medium Priority
Last Modified: 2012-08-13
Hi, I have an ActiveX control written in C# that will have a button. I have this ActiveX control loaded in a HTML. When user clicked on the button, it is supposed to launch his calculator.exe from his computer.

This is part of the code in my ActiveX Control. I have this compiled into a DDL.

      private void button1_Click(object sender, System.EventArgs e)
                  System.Diagnostics.Process proc = new System.Diagnostics.Process();

I hosted this code on my PC(My own IIS), it gave me the security exception error first. Then I went to configure my .NET Framework 1.1 Configuration and set the Local Intranet Zone to FULL TRUST. I am finally able to open the calculator.exe by just clicking on the button. However, my colleague, on a same LAN, couldn't launch the calculator when i gave him my URL as he keeps getting the SeucrityExeption Request Failed when the button is pressed. He already set the  .NET Framework Configuration to have the Local Intranet Zone set to FULL TRUST. He still couldn't open the Calculator.exe. Please help!
Question by:sherly
LVL 13

Accepted Solution

devsolns earned 2000 total points
ID: 16550067
asp.net runs under a network service account which doesnt have permission to do that.

you need to use impersonation, which kind depends on your architecture.  if your using windows authentication then its easy to take the httpcontext identity and have the thread impersonate.  if not then we can still use but you'll just impersonate under some hard coded id.

take a look at my prior post/solution to this.



Expert Comment

ID: 16621147
Ask your colleague to add your site to the list of intranet sites in his internet explorer.

(Tools -> internet options-> security, select "local intranet" and click the "sites" button)

Featured Post

Industry Leaders: 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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

578 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