470,614 Members | 1,510 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,614 developers. It's quick & easy.

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

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.
Nov 22 '05 #1
3 1947
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" <Se*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:D9**********************************@microsof t.com...
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.

Nov 22 '05 #2
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

"cody" wrote:
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" <Se*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:D9**********************************@microsof t.com...
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.


Nov 22 '05 #3
> 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.

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
"Seeheng" <Se*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:7C**********************************@microsof t.com... 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

"cody" wrote:
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" <Se*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:D9**********************************@microsof t.com...
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.


Nov 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

By using this site, you agree to our Privacy Policy and Terms of Use.