SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have set up a feature with an event receiver with the purpose of parsing some values from a website and adding them to a sharepoint list. The parsing code is written with the help of HTML Agility Project which I've deployed to GAC and referenced - the problem however is I now learn that I can't access any external webpages in a sandboxed solution.

Request for the permission of type 'System.Net.WebPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

How to get around that problem?

share|improve this question
up vote 1 down vote accepted

I'm sorry but there is no way a Code in a Sandboxed solution can access anything outside the current site collection. This outside the site collection includes the rest of the internet.

The only solution is if you can deploy a full trust proxy, which isn't possible with Office 365.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.