By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,195 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,195 IT Pros & Developers. It's quick & easy.

'System.Net.WebPermission Error?

P: n/a
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

Aug 14 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
you using webclient, or using a web reference, but your website is not
allowed to access http resouces. talk to hoster to supply the permissions.

-- bruce (sqlwork.com)
<bi**********@gmail.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
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

Aug 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.