Domanda

Sto ricevendo un errore con il tentativo di fare un httpwebrequest all'interno di una web part, sto ottenendo una securityExcezione che dice che System.Net.WebPermission fallita.Durante la ricerca di una risposta, mi sono imbattuto in Questa domanda .Una delle risposte era usare una soluzione agricola.Sono molto nuovo a sviluppare con SharePoint quindi non sono esattamente sicuro di cosa significhi.

Attualmente ho uno sviluppo SharePoint VM configurato con Visual Studio in esecuzione su di esso.Come sarei in grado di lavorare sulla mia pagina web e poter essere in grado di non ottenere questa eccezione lanciata?

Grazie mille!

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top