Click here to Skip to main content
15,926,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# and visual foxpro database Pin
Heath Stewart25-Jun-04 4:30
protectorHeath Stewart25-Jun-04 4:30 
GeneralDrawing Problem Pin
rog103924-Jun-04 18:47
rog103924-Jun-04 18:47 
GeneralRe: Drawing Problem Pin
Heath Stewart25-Jun-04 4:25
protectorHeath Stewart25-Jun-04 4:25 
GeneralRe: Drawing Problem Pin
Karl 200027-Jun-04 9:19
Karl 200027-Jun-04 9:19 
GeneralThe Thread Security Of It All Pin
MKlucher24-Jun-04 18:07
MKlucher24-Jun-04 18:07 
GeneralRe: The Thread Security Of It All Pin
LongRange.Shooter25-Jun-04 2:52
LongRange.Shooter25-Jun-04 2:52 
GeneralRe: The Thread Security Of It All Pin
Heath Stewart25-Jun-04 4:03
protectorHeath Stewart25-Jun-04 4:03 
GeneralRe: The Thread Security Of It All Pin
Heath Stewart25-Jun-04 4:10
protectorHeath Stewart25-Jun-04 4:10 
The Common Language Runtime (CLR) features Code Access Security - a sandbox environment for .NET, if you will. By default, applications executed from the network (or that use network resources) run without FullTrust permissions. They are limited in what they can do, and local file access is restricted, among many other things.

I suggest you first read Understanding .NET Code Access Security[^]. You need to either change the Intranet permission set (not recommended), or create a new CodeGroup that uses a membership condition that will match up with your host or assembly evidence that the CLR would grab (like using a Url membership condition with "file://MYNETSERVER/SOMESHARE/*"). Grant that either FullTrust permissions (not recommended; do things right) or the necessary permissions to run.

To help administrators know what permissions your code requires, you should attribute your assembly with certain permission requirements (assembly-level attributes). You should also be mindful that your code may not be granted optional permissions and should check for SecurityExceptions accordingly (by either catching potential cases, or asserting the permission to see if you can perform a certain action).

For that, read Securing Applications[^] in the .NET Framework SDK.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: The Thread Security Of It All Pin
MKlucher25-Jun-04 8:02
MKlucher25-Jun-04 8:02 
GeneralRe: The Thread Security Of It All Pin
Heath Stewart25-Jun-04 8:32
protectorHeath Stewart25-Jun-04 8:32 
Questionspeed of Dataset and DataReader? Pin
jzb24-Jun-04 16:33
jzb24-Jun-04 16:33 
AnswerRe: speed of Dataset and DataReader? Pin
Colin Angus Mackay24-Jun-04 22:20
Colin Angus Mackay24-Jun-04 22:20 
Generalquestion of ImageList Pin
jzb24-Jun-04 16:28
jzb24-Jun-04 16:28 
GeneralRe: question of ImageList Pin
bneacetp24-Jun-04 21:27
bneacetp24-Jun-04 21:27 
GeneralRe: question of ImageList Pin
Dave Kreskowiak25-Jun-04 4:46
mveDave Kreskowiak25-Jun-04 4:46 
Question.NET Remoting, Client side reference server side? then how distribute? Pin
fayth24-Jun-04 16:11
fayth24-Jun-04 16:11 
AnswerRe: .NET Remoting, Client side reference server side? then how distribute? Pin
Xiangyang Liu 刘向阳24-Jun-04 16:54
Xiangyang Liu 刘向阳24-Jun-04 16:54 
GeneralRe: .NET Remoting, Client side reference server side? then how distribute? Pin
Heath Stewart25-Jun-04 3:59
protectorHeath Stewart25-Jun-04 3:59 
GeneralRe: .NET Remoting, Client side reference server side? then how distribute? Pin
Xiangyang Liu 刘向阳25-Jun-04 15:41
Xiangyang Liu 刘向阳25-Jun-04 15:41 
GeneralRe: .NET Remoting, Client side reference server side? then how distribute? Pin
Heath Stewart26-Jun-04 13:53
protectorHeath Stewart26-Jun-04 13:53 
GeneralRe: .NET Remoting, Client side reference server side? then how distribute? Pin
Xiangyang Liu 刘向阳27-Jun-04 0:28
Xiangyang Liu 刘向阳27-Jun-04 0:28 
AnswerRe: .NET Remoting, Client side reference server side? then how distribute? Pin
Allen Anderson24-Jun-04 17:10
Allen Anderson24-Jun-04 17:10 
GeneralRe: .NET Remoting, Client side reference server side? then how distribute? Pin
fayth24-Jun-04 20:19
fayth24-Jun-04 20:19 
GeneralRe: .NET Remoting, Client side reference server side? then how distribute? Pin
Xiangyang Liu 刘向阳25-Jun-04 15:47
Xiangyang Liu 刘向阳25-Jun-04 15:47 
GeneralToolboxBitmap Icon Pin
The_Soul_Of_Rock24-Jun-04 14:48
The_Soul_Of_Rock24-Jun-04 14:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.