Need help regarding Trust Level Error
-
Hi, i am working on embedding rss feeds in my site it has worked fine in my local server but when i have uploaded that one in web it shows the following error 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 41: { Line 42: clrFeed.DataSource = "http://in.news.yahoo.com/myyahoo/rss/national-general.xml"; Line 43: clrFeed.DataBind(); Line 44: Line 45: rssRediff.DataSource = "http://www.rediff.com/rss/inrss.xml"; My web.config file :- -------------------- -------------------------------------------------------------------------------------------------------------------- I dint embed the trust level tag in web.config. ( You can see the commented one ) my service provider provides medium trust level. when i have applied trust level as medium in my web.config it shows an error like location allowoverride="false" then i have changed the allowoverride to true. But its not working. Can you please help me out in this regard thanks in advance
-
Hi, i am working on embedding rss feeds in my site it has worked fine in my local server but when i have uploaded that one in web it shows the following error 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 41: { Line 42: clrFeed.DataSource = "http://in.news.yahoo.com/myyahoo/rss/national-general.xml"; Line 43: clrFeed.DataBind(); Line 44: Line 45: rssRediff.DataSource = "http://www.rediff.com/rss/inrss.xml"; My web.config file :- -------------------- -------------------------------------------------------------------------------------------------------------------- I dint embed the trust level tag in web.config. ( You can see the commented one ) my service provider provides medium trust level. when i have applied trust level as medium in my web.config it shows an error like location allowoverride="false" then i have changed the allowoverride to true. But its not working. Can you please help me out in this regard thanks in advance
Shared hosting servers will not allow you to change trust level higher than "Medium", you can replicate the same error on local machine by adding <trust level="Medium" originUrl=""/> in web.config. Sagar