473,473 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2044
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Seeheng | last post by:
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...
1
by: VincentWong | last post by:
hi all, We're getting a security exception (An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll) on a asychronous...
2
by: MFRASER | last post by:
I am getting a System.Security.SecurityException when I try and laod a dataset from an xml file any ideas on what would cause this? System.Security.SecurityException' occurred in mscorlib.dll ...
3
by: nick | last post by:
The program runs well on Local harddisk. But it always popup the exception if I run it on Netware mapping disk. After debugger say there is no source code on the exception. Also the following error...
3
by: E.T. Grey | last post by:
Hi, I get this everytime I try to run some code I have. I loked it up on MSDN and was informed that this had something to do with calling SystemInformation.Username property of...
7
by: Sabo, Eric | last post by:
We are an educational environment, we are using VB .Net and Windows XP SP2. The users are power users. We have a Visual Basic .Net class that is having trouble with their project, they are getting...
0
by: Steve | last post by:
I am using Visual Studio .NET 2003, which has .NET framework 1.1. When I tried to run .NET web services client, I got the following error: Security Exception Error Message: An unhandled...
5
by: Ankit Aneja | last post by:
This is my problem. I am using Visual 2003, .Net framework 1.1 and the Application Block I configured the DAAB using the Enterprise Library Configuration now this is the error which is coming ...
3
by: NormD | last post by:
An exception 'System.ExecutionEngineException' has occurred in servername I have deployed a windows application on a server; I'm running the same on my pc using...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.