You have a custom Web Part that is deployed as a sandboxed solution.
You need to ensure that the Web Part can access the local file system on a SharePoint server. You must minimize the amount of privileges assigned to the Web Part.
What should you do?
A.
Elevate the trust level to Full.
B.
Elevate the trust level to WSS_Medium.
C.
Redeploy the Web Part as a farm solution.
D.
Deploy the Web Part to the Global Assembly Cache (GAC).
Explanation:
MNEMONIC RULE: “Redeploy”Due to the heavy restrictions of sandboxed solutions, elevating the trust level is not an option, and neither is the deployment of the Web Part to GAC.
You can get broader permissions by using full-trust proxies, but it’s not an option in this question. 🙂