Security Exception Request Failed When Launching An EXE From Web

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();
                  proc.EnableRaisingEvents=false;
                  proc.StartInfo.FileName="calc";
                  proc.Start();
            }

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!
LVL 2
sherlyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

devsolnsCommented:
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.

http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_21728524.html?query=devsolns+impersonation&clearTAFilter=true

-gp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ChipzterCommented:
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)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.