Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 10th, 2004, 03:46 PM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 'System.Security.SecurityException'

Hi everybody,
Everytime i try to run file-operation(create/read from file) code in C# i get this error
-------------------------------------------------------------------
An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll

Additional information: Request for the permission of type System.Security.Permissions.FileIOPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
--------------------------------------------------------------------
I understand that this is a permission error. I tried changing permissions to the file but even that wont help.

Can somebody help me out with this?

Thnx
 
Old August 10th, 2004, 03:50 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

What changes did you make?

 
Old August 10th, 2004, 03:55 PM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

added 'everyone' in the user names of security tab in properties and gave required permissions to this user.

Mrinal
 
Old August 11th, 2004, 07:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Everyone refers to domain accounts if I'm not mistaken.

Is this a web app or a windows app?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting System.Security.SecurityException Sunnys ASP.NET 2.0 Professional 0 March 14th, 2007 04:13 AM
System.Security.SecurityException: Security error coolcatjk Pro VB.NET 2002/2003 4 March 2nd, 2006 06:00 PM
System.Security.SecurityException pastoda BOOK: Professional C#, 2nd and 3rd Editions 7 July 31st, 2005 08:49 AM
System.Security.SecurityException davepruce ADO.NET 1 May 10th, 2005 11:20 AM
'System.Security.SecurityException' Jesus VB.NET 2002/2003 Basics 0 November 4th, 2004 02:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.