472,811 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,811 software developers and data experts.

System.Security.SecurityException occurred in mscorlib.dll

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.StrongNameIdentityPerm ission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

string filename = "LoginManager001.xml" ;

string aDSN = null;

System.Data.DataSet aDataSet = new System.Data.DataSet();

if (System.IO.File.Exists(filename))

{

//clear out the dataset

aDataSet.Clear();

aDataSet.ReadXml(filename);

}
Nov 15 '05 #1
2 3088
Hi,
I'm not repro'ing the exception with the code sample you gave below.
Can you provide a sample data set LoginManager001.xml that causes the
exception to repro?

Thanks,
David [MS-SDK]

-Please do not send email directly to this alias. This alias is for
newsgroup purposes only
-This posting is provided “AS IS” with no warranties, and confers no rights.
-To provide additional feedback about your community experience please send
e-mail to: sd*****@microsoft.com
--------------------
From: "MFRASER" <mf*****@henwoodenergy.com>
Subject: System.Security.SecurityException occurred in mscorlib.dll
Date: Wed, 18 Feb 2004 09:24:56 -0800

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.StrongNameIdentityPe rmission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
string filename = "LoginManager001.xml" ;

string aDSN = null;

System.Data.DataSet aDataSet = new System.Data.DataSet();

if (System.IO.File.Exists(filename))

{

//clear out the dataset

aDataSet.Clear();

aDataSet.ReadXml(filename);

}


Nov 15 '05 #2
Hi,
I'm not repro'ing the exception with the code sample you gave below.
Can you provide a sample data set LoginManager001.xml that causes the
exception to repro?

Thanks,
David [MS-SDK]

-Please do not send email directly to this alias. This alias is for
newsgroup purposes only
-This posting is provided “AS IS” with no warranties, and confers no rights.
-To provide additional feedback about your community experience please send
e-mail to: sd*****@microsoft.com
--------------------
From: "MFRASER" <mf*****@henwoodenergy.com>
Subject: System.Security.SecurityException occurred in mscorlib.dll
Date: Wed, 18 Feb 2004 09:24:56 -0800

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.StrongNameIdentityPe rmission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
string filename = "LoginManager001.xml" ;

string aDSN = null;

System.Data.DataSet aDataSet = new System.Data.DataSet();

if (System.IO.File.Exists(filename))

{

//clear out the dataset

aDataSet.Clear();

aDataSet.ReadXml(filename);

}


Nov 15 '05 #3

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

Similar topics

0
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...
0
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: ...
1
by: edge | last post by:
hi, here it is my problem. My console app, reads a text file where it grabs username/password. Next, my app creates a .BAT file to trigger the command ftp:\\user:password@ftphomeaddress. ...
3
by: Carl | last post by:
Hi. I have my program written as a console application in C# .NET 2005. I run it from a server on the local intranet and I got this message: An unhandled exception of type...
0
by: Steve | last post by:
I am using Visual Studio .NET 2003, which has .NET framework 1.1. When I tried to run .NET web services client, I got the following error: Security Exception Error Message: An unhandled...
5
by: Ankit Aneja | last post by:
This is my problem. I am using Visual 2003, .Net framework 1.1 and the Application Block I configured the DAAB using the Enterprise Library Configuration now this is the error which is coming ...
1
by: eisenb | last post by:
microsoft.public.dotnet.languages.vb.upgrade isn't getting much traffic, so I'll try here. Ours is a VB6 shop exploring .NET. First I wrote a new application with VB .NET 2003 to create a pdf...
3
by: steveeisen | last post by:
microsoft.public.dotnet.languages.vb.upgrade isn't getting much traffic, so I'll try here. Ours is a VB6 shop exploring .NET. First I wrote a new application with VB .NET 2003 to create a...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.