Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

How to get around that problem?

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.