My Techie Blog

  Home  |   Contact  |   Syndication    |   Login
  110 Posts | 5 Stories | 406 Comments | 0 Trackbacks

News

Archives

Post Categories

ADO.NET

Ajax

API/WebServices

ASP.NET Resources

BizTalk Server

Blogs I read

Free Books

How to

iOT

JavaScript

JQuery

JSLink - SharePoint

JSON

LINQ

Misc

Mobile BI

MS Business Inteliigence

Reporting Services

Responsive/MVC ASP.NET

SEO

Sharepoint Resources/Tools

SharePoint 2010 Branding

SharePoint 2010 Videos

SharePoint 2013

SharePoint Online

SilverLight

SPServices

SQL Server

Sql Server 2012

SSIS

Web Optimization Tools

Web Performace Tools

Windows 8

Windows Azure

Windows Azure

Windows Phone

WorkFlows

WSS V3

xml

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.

Hope that helps
posted on Thursday, April 9, 2009 5:49 PM

Feedback

# re: Ajax - Request for the permission of type 'System.Web.AspNetHostingPermission, 12/29/2009 12:29 PM Scott
Awesome! This did the trick. Works on VS 2008. Thanks Patrick!

# re: Ajax - Request for the permission of type 'System.Web.AspNetHostingPermission, 1/19/2010 12:05 PM Kris
Thank you for posting this, it fixed the issue I was having!

# re: Ajax - Request for the permission of type 'System.Web.AspNetHostingPermission, 4/6/2010 7:36 AM Arti
I was going insane but this really helped...

# re: Ajax - Request for the permission of type 'System.Web.AspNetHostingPermission, 2/7/2011 6:38 PM Santosh
Thanks dear Patrick, Awesome! it fixed the issue. thanks again.

Post A Comment
Title:
Name:
Email:
Comment:
Verification: