Windows Forms

i develop a small windows application using C#,

and i call this exe file from html page,

the error occured is :

An unhandled exception of type 'System.Security.SecurityException' occurred in IEExec.exe

Additional information: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

any one can help me in detail please.




Answer this question

Windows Forms

  • countzero

    What do you mean you are calling it from a html-page.

    Running an executable from a network location will run it in the security settings for the zone the website is in.



  • Volker W.

    Alternatively, you can use caspol.exe to adjust the security settings on your machine to try running in partial trust. Any control embedded in a webpage needs to be able to run in partial trust.
  • Windows Forms