An exception "System.Security.SecurityException" has occurred!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've created a VB.Net program running perfectly under local hard drive. But when move it to a network path (both UNC name and drive mapping tested), it gave "An exception 'System.Security.SecurityException' has occurred".

Anybody has any idea to resolve this issue?
Appreciate any advise.
 
This is because excutable from network drives and the internet cannot fully
be trusted so the internal security manager throws an error.
You can edit the security polices for each application in your computer
administration settings.

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
Seeheng said:
I've created a VB.Net program running perfectly under local hard drive.
But when move it to a network path (both UNC name and drive mapping tested),
it gave "An exception 'System.Security.SecurityException' has occurred".
 
Thanks cody!

Wondering if this is the only way?
Imagine if we need to distribute the program to other party, I don't think
we want to edit the setting on every single machine installed.

Seeheng
 
Wondering if this is the only way?
Imagine if we need to distribute the program to other party, I don't think
we want to edit the setting on every single machine installed.

If the enduser runs the app from the local harddisk the security manager
gives the program full trust.
 
Back
Top