我在尝试在Web部件内尝试制作一个httpWebRequest时,我得到了一个错误,我正在获得一个securityException,说system.net.webpermission失败了。在搜索答案时,我遇到了这个问题。其中一个答案是使用农场解决方案。使用SharePoint开发非常新的是,所以我不确定这意味着什么。

我目前有一个开发sharepoint vm设置与在它上运行的Visual Studio设置。我将如何在我的网站上工作,并能够抛出此异常?

感谢吨!

有帮助吗?

解决方案

When you create a SharePoint project in VS, look at the dialog that appears: it asks which site you want to use for debugging, and the second question is whether you want it to be a sandbox or a farm solution. (or, for an existing project, you can change this in the properties of the project).

There's already been a lot written on both, so read up on them and post any specific questions you have.

许可以下: CC-BY-SA归因
scroll top