Foros‎ > ‎.Net‎ > ‎

Ajax - Request for the permission of type 'System.Web.AspNetHostingPermission, System

publicado a la‎(s)‎ 12 mar. 2013 8:22 por Ignacio Gonzalez
To resolve this issue, you must change your development machine .net security configuration since you are accessing items across the network. In the event that you need this ability at runtime, you must change the trust level in your config file to full. However, since this is only in development, I can change my local PC's security by going to 
Start > Control Panel > Administrative Tools > Microsoft .NET Framework 2.0 Configuration. 
After it fully loads (sometimes takes a bit), fully expand My Computer in the navigation tree and click Runtime Security Policy. In the right hand pane, choose Adjust Zone Security. 
Leave the default option (Make changes to this computer) and hit next. Choose Local Intranet and change the trust level to Full Trust. Then choose next and then finish. Restart Visual Studio 2005 and you should be all set.