468,306 Members | 1,255 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,306 developers. It's quick & easy.

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 2796
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by James B | last post: by
3 posts views Thread by Carl | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.