473,516 Members | 3,138 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SecurityException with UNC

I'm using VStudio2005 and working with a VB.Net windows form application.
The project is located in the My Documents folder... under a UNC shared
path.

\\fs1\users\cthunell\My Documents\My Projects (something like this)

I'm getting a SecurityException was unhandled.. Request for the Permission
of type 'System.Secuirty.Permissions.SecurityPermision'... when i try to
debug the application.

if i copy the project to the C drive of my computer - the project debugs
fine and starts right up.

HELP!!!!
Thanks in advance,
Chris Thunell
ct******@pierceassociates.com
Jul 25 '06 #1
1 993
I'm using VStudio2005 and working with a VB.Net windows form
application. The project is located in the My Documents folder...
under a UNC shared path.

\\fs1\users\cthunell\My Documents\My Projects (something like this)

I'm getting a SecurityException was unhandled.. Request for the
Permission of type 'System.Secuirty.Permissions.SecurityPermision'...
when i try to debug the application.

if i copy the project to the C drive of my computer - the project
debugs fine and starts right up.
When accessing the application through a UNC (even if the location is on
your local computer), the runtime asserts that you are running on the intranet
zone. Due to Code Access Security (CAS) settings, it restricts what kinds
of things your code can do to help prevent against malivent code. For example,
it may block access to the file store, registry settings, database connections,
etc. You can modify the security setting for your application using a number
of different methods. Read up on CAS in order to handle this kind of deployment
scheme. You can start here: http://msdn.microsoft.com/library/de...sssecurity.asp

Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx
Jul 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
6469
by: Mark Rodrigues | last post by:
Hi everyone, Today we hit a problem when we rolled a new web-site are were presented with a error on our page that looked like: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or...
0
1421
by: | last post by:
I have been learning really hard to understand this .NET security thing, but I still get overwhelmed with the abstractness. The hardest part is to understand *when* you get an SecurityException and *how* I would translate this into a simple-user-friendly messagebox. And *when* you get a PolicyException and I also want to translate this into...
1
6763
by: Sam | last post by:
I have a desktop VB.Net application I developed locally. I uploaded it to a file server we have and the .Net Framework is installed on the file server. When I try to run the executable from the network drive, I get, "System.Security.SecurityException." When I Open the solution from the network drive, I get, "The project location is not...
0
3331
by: James B | last post by:
OMA (Outlook Mobile Access) under Exchange is giving me a System.Security.SecurityException error. From what I gather this is a problem with the security level under which the OMA application is trying to run. Anyone got some ideas on where I can start in getting this worked out? I've posted in Exchange but I'm thinking this group may actually...
0
1532
by: Brian A | last post by:
I have code that calls some Win32 code. My library is accessed via remoting from a client. In version 1.0 of the framework I had no problems. With 1.1 I consitently get the securityException: An unhandled exception of type 'System.Security.SecurityException' occurred in myfile.dll Additional information: Request for the permission of...
2
3140
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 Additional information: Request for the permission of type System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=1.0.3300.0,...
2
4199
by: jwgoerlich | last post by:
I wrote a simple VB.Net console application. It accepts command line parameters and creates a folder structure. It works on the local file system without a problem If I run the console app from a UNC or network share, I get a SecurityException on the following line: Dim args() As String = Environment.GetCommandLineArgs() Has anyone...
0
823
by: Mythran | last post by:
Class1: <PrincipalPermission(SecurityAction.Demand, Role := "MyRole")> _ Public Function Fetch() As DataTable End Function Class2: Public Function Fetch() As DataTable Dim cls1 As Class1 = New Class1() Try Return cls1.Fetch()
0
961
by: Michael | last post by:
Re: system.security.securityexception The program I have written requires "Full Trust" to run and will throw a security exception if a user tries to load it while working in the Intranet Zone, i.e., on a LAN. I am trying to trap the error, and advise the user via a messagebox to request the LAN administrator to set up the user machine...
4
9067
by: stephen | last post by:
Hi, I am getting an error while trying to create an excel file. "Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details:...
0
7276
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7182
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7581
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7548
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5714
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5110
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4773
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3267
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1624
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 we have to send another system

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.