문제

웹 파트 내에서 httpWebRequest를 만들려고하면 오류가 발생하면 System.Net.Webpermission이 실패한 SecurityException을 얻고 있습니다.답변을 검색하는 동안, 나는 이 질문 에서 왔습니다.답변 중 하나는 농장 솔루션을 사용하는 것이 었습니다.나는 SharePoint로 개발하는 것이 매우 새로운 것이므로이 의미가 무엇을 의미하는지 확신하지 못합니다.

현재 Visual Studio가 실행중인 개발 SharePoint VM이 있습니다.웹 파트에서 어떻게 작업 할 수 있고이 예외를 던 졌을 수 없습니까?

감사합니다!

도움이 되었습니까?

해결책

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 ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top