Web Part SecurityException - System.Net.WebPermission - Farm Solution.
-
10-12-2019 - |
質問
Webパーツの中にHttpWebRequestを作成しようとしているエラーが発生しました。答えを探している間、私はこの質問。答えの1つは農場の解決策を使うことでした。私はSharePointを使って開発するのは非常に新しいので、これが何を意味するのか正確には確かではありません。
現在、Visual Studioが実行されているDevelopment 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.
所属していません sharepoint.stackexchange