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

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.
 
C

cody

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".
 
G

Guest

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
 
C

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.

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

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

Top