B
bilal.hamdan
Hi, I' trying to read some RSS feeds and all works fine on the DEV
machin. once it's at Magma i run into this error.
Security Exception
Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the required
permission please contact your system administrator or change the
application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the
permission of type 'System.Net.WebPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
Line 31: //XmlTextReader xmlReader = new
XmlTextReader(RSSURL);
Line 32: DataSet ds = new DataSet();
Line 33: ds.ReadXml(RSSURL); <<<<<<<<<<<<<<<<<error
Line 34: return ds.Tables[2];
Line 35: }
Source File: d:\users\cahrp\html\Controls\MedicalNewsFeeds.ascx.cs
Line: 33
What should i be doing to solve this any help or hints would be
greatley apreciated.
Thanks,
Bilal
www.bilalhamdan.com
machin. once it's at Magma i run into this error.
Security Exception
Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the required
permission please contact your system administrator or change the
application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the
permission of type 'System.Net.WebPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
Line 31: //XmlTextReader xmlReader = new
XmlTextReader(RSSURL);
Line 32: DataSet ds = new DataSet();
Line 33: ds.ReadXml(RSSURL); <<<<<<<<<<<<<<<<<error
Line 34: return ds.Tables[2];
Line 35: }
Source File: d:\users\cahrp\html\Controls\MedicalNewsFeeds.ascx.cs
Line: 33
What should i be doing to solve this any help or hints would be
greatley apreciated.
Thanks,
Bilal
www.bilalhamdan.com