473,385 Members | 1,320 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,385 software developers and data experts.

Permissions for launching an assembly from network share

Hi All,

how knows what must be configured on local machine or (and
better) within .net application in order to allow to start
it from network share without SecurityException?

Application works fine on local drive, but system throws
the following exception when I try to launch it from
network.

Unhandled Exception: System.Security.SecurityException:
Request for the permission of type
System.Security.Permissions.S
ecurityPermission, mscorlib, Version=1.0.3300.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at
System.Security.CodeAccessSecurityEngine.CheckToke nBasedSet
Helper(Boolean ignoreGrants, TokenBasedSet grants, Toke
nBasedSet denied, TokenBasedSet demands)
at
System.Security.CodeAccessSecurityEngine.CheckSetH elper
(PermissionSet grants, PermissionSet denied, PermissionSet
demands)
at System.Environment.Exit(Int32 exitCode)
at ConsoleAppSecurity.Class1.Main(String[] args) in
d:\work\khids\tests\consoleappsecurity\class1.cs:l ine 19

The state of the failed permission was:
<IPermission
class="System.Security.Permissions.SecurityPermiss ion,
mscorlib, Version=1.0.3300.0, Culture=neutral, Publi
cKeyToken=b77a5c561934e089"
version="1"
Flags="UnmanagedCode"/>

br
Wanderer
Jul 21 '05 #1
5 4156
"Wanderer" <kh**@gmx.de> wrote in message
news:0a****************************@phx.gbl...
how knows what must be configured on local machine or (and
better) within .net application in order to allow to start
it from network share without SecurityException?

Application works fine on local drive


1) Control Panel --> Administrative Tools
2) Select "Microsoft .Net Framework 1.1 Configuration"
3) Select in the left panel the "Runtime Security Policy" item
4) In the right panel, select the "Adjust Zone Security"
5) In the Security Adjustment Wizard, select the "Local Intranet" group
6) With the slider control, slide the Trust Level up to "Full Trust"

-- Alan
Jul 21 '05 #2
"Wanderer" <kh**@gmx.de> wrote in message
news:0a****************************@phx.gbl...
how knows what must be configured on local machine or (and
better) within .net application in order to allow to start
it from network share without SecurityException?

Application works fine on local drive


1) Control Panel --> Administrative Tools
2) Select "Microsoft .Net Framework 1.1 Configuration"
3) Select in the left panel the "Runtime Security Policy" item
4) In the right panel, select the "Adjust Zone Security"
5) In the Security Adjustment Wizard, select the "Local Intranet" group
6) With the slider control, slide the Trust Level up to "Full Trust"

-- Alan
Jul 21 '05 #3
>-----Original Message-----
1) Control Panel --> Administrative Tools
2) Select "Microsoft .Net Framework 1.1 Configuration"
3) Select in the left panel the "Runtime Security Policy" item4) In the right panel, select the "Adjust Zone Security"
5) In the Security Adjustment Wizard, select the "Local Intranet" group6) With the slider control, slide the Trust Level up

to "Full Trust"

It works so. Thank you.

Is it possible to adjust security only for a particular
application?
Jul 21 '05 #4
>-----Original Message-----
1) Control Panel --> Administrative Tools
2) Select "Microsoft .Net Framework 1.1 Configuration"
3) Select in the left panel the "Runtime Security Policy" item4) In the right panel, select the "Adjust Zone Security"
5) In the Security Adjustment Wizard, select the "Local Intranet" group6) With the slider control, slide the Trust Level up

to "Full Trust"

It works so. Thank you.

Is it possible to adjust security only for a particular
application?
Jul 21 '05 #5
"Wanderer" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
Is it possible to adjust security only for a particular application?


I'm not aware of a way. I looked all over in .NET Framework configuration
and didn't see anything there. Maybe there's something that can be tweaked
in machine.config, but I don't know.

-- Alan
Jul 21 '05 #6

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

Similar topics

1
by: Patrick | last post by:
Hi I've an application, that access the file system. This works fine on my local machine. When I copy it to the share, it does not work anymore, and throws my a fileIOPermissionException. ...
0
by: Wanderer | last post by:
Hi All, how knows what must be configured on local machine or (and better) within .net application in order to allow to start it from network share without SecurityException? Application...
0
by: Jake Holt | last post by:
I'm a converted Java programmer so go easy on me.. Basically I wrote a program for my Sales department that parses EDI 852s and returns a csv file for them. My problem is when i move it to the...
12
by: Mark | last post by:
Hello, in a simple console application I try to create a file with some code like: FileStream file = new FileStream("test.txt", FileMode.OpenOrCreate, FileAccess.Write); StreamWriter sw = new...
13
by: John Bowman | last post by:
Hi All, I've got a simple wrapper static test method on a class to expand the environment variables on a specified string: public static string ExpandEnvironmentStr(string Str) { return...
3
by: Larry Serflaten | last post by:
I just put a simple exe out on the internet and tried to run it. All it does is manipulate its own images and respond to its own controls, but the darn thing needed FULL TRUST to run properly! ...
8
by: Bryan Dickerson | last post by:
The full message is: Request for permission of the type 'System.Security.Permissions.RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ...
0
by: savajx1 | last post by:
I am loading signed assemblies from a network share. The assemblies are NOT INSTALLED in the GAC as they are part of an enterprise distributed application implemented as a windows service that...
5
by: =?Utf-8?B?Um9nZXI=?= | last post by:
Hello ! My question is simple: How can I change ALL THE PCS ON A DOMAIN to have CAS full trust to a network share ? Notes: When you deploy an application to a network share, as all the...
8
by: jporter188 | last post by:
Hello, I am working on a project to manipulate XML files. All of the files, the code, and the output are on network drives. When I run my program I get an exception (see below). I tried giving...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.