'System.Net.WebPermission Error?

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
 
B

bruce barker \(sqlwork.com\)

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)
 

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

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top