473,386 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 2041
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.