Click here to Skip to main content
15,928,983 members
Home / Discussions / C#
   

C#

 
GeneralRe: programming for the MSN6 messenger Pin
Heath Stewart25-Jun-04 4:56
protectorHeath Stewart25-Jun-04 4:56 
GeneralRe: programming for the MSN6 messenger Pin
Dave Kreskowiak25-Jun-04 5:24
mveDave Kreskowiak25-Jun-04 5:24 
General? Access controls belonging to another application Pin
catalin_im24-Jun-04 22:33
catalin_im24-Jun-04 22:33 
GeneralRe: ? Access controls belonging to another application Pin
Jeremy Kimball25-Jun-04 3:11
Jeremy Kimball25-Jun-04 3:11 
GeneralRe: ? Access controls belonging to another application Pin
Dave Kreskowiak25-Jun-04 5:10
mveDave Kreskowiak25-Jun-04 5:10 
GeneralRe: ? Access controls belonging to another application Pin
catalin_im27-Jun-04 20:46
catalin_im27-Jun-04 20:46 
GeneralRe: ? Access controls belonging to another application Pin
Dave Kreskowiak28-Jun-04 0:39
mveDave Kreskowiak28-Jun-04 0:39 
GeneralDataSet Pin
Sirin24-Jun-04 22:18
Sirin24-Jun-04 22:18 
GeneralRe: DataSet Pin
Colin Angus Mackay24-Jun-04 22:23
Colin Angus Mackay24-Jun-04 22:23 
GeneralRe: DataSet Pin
amatyasik25-Jun-04 2:08
amatyasik25-Jun-04 2:08 
GeneralRe: DataSet Pin
Dave Kreskowiak25-Jun-04 5:03
mveDave Kreskowiak25-Jun-04 5:03 
GeneralTo give color to a row of datagrid Pin
HowRU24-Jun-04 22:15
HowRU24-Jun-04 22:15 
GeneralRe: To give color to a row of datagrid Pin
Heath Stewart25-Jun-04 4:31
protectorHeath Stewart25-Jun-04 4:31 
Generalc# and visual foxpro database Pin
cmarmr24-Jun-04 18:53
cmarmr24-Jun-04 18:53 
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 

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.