473,499 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3139
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
3327
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
1529
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
4436
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
30719
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
1801
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
9745
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
1614
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
10422
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
12034
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...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.