Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Need help regarding Trust Level Error

Need help regarding Trust Level Error

Scheduled Pinned Locked Moved ASP.NET
helpannouncementcsharpcomsysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rockinkash
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • R rockinkash

      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

      L Offline
      L Offline
      logicaldna
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups