System.Security.SecurityException occurred in mscorlib.dll

M

MFRASER

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.StrongNameIdentityPermission, 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);

}
 
D

David MS

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: (e-mail address removed)
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top