Security Exception

  • Thread starter Thread starter DBC User
  • Start date Start date
D

DBC User

I have a VC++ program which launches a C# program. This one works fine,
when I have both in my workstation. When I install it in a server and
when I launch it from the workstation PC, I am getting
System.Security.SecurityException. Does anyone know why I am getting
this error?

Thanks.
 
Hello,

The security exception is thrown because the .NET application is launched in
a less trusted zone, such as Internet or Local Intranet, and the current
security policy for this zone does not grant the application access to
requested file system, registry or other locations.

A recommended solution is to sign your assemblies with a strong name key
pair and make it fully trusted in the two aforementioned zones. It is a
rather lengthy process but could be automated by creating deployment
projects. You can read more at
http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx.

I hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top