1

I have developed several custom web parts for a new SharePoint instance. When I leave the web parts as a Sandbox Solution and deploy them to the server they display and function as intended for users in the Owners group.

For all other users, the web parts throw an Access is denied error. If I switch the web parts to a Farm Solution and deploy them to the site all of my non-Owners group users cannot get to the SharePoint site. They receive the

"Sorry, you don't have access to this page" message.

I have checked the permissions on all of the associated lists that these web parts pull data from and they are correct. Can anyone give me any insight as to why I am encountering these permission issues on my custom web parts?

1

2 Answers 2

1

If you have use any resource files for the custom webpart try to keep those in source code folder and give the permissions to access that source code folder too, That solves the issue for me some times. you can hide the folder using the SharePoint Designer.

1
  • I'm fairly new to developing custom web parts but I'm pretty sure I don't have any resource files. All of the files that are in the project are the ones created by Visual Studio. Jul 10, 2017 at 17:47
0

I was able to figure out a work around.

All of the lists that my web parts were pulling data from resided on the top level parent site. I created a new sub-site and moved my lists to that site and it allowed me to deploy my web parts as non-sandboxed solutions without causing the permissions issue.

Still not sure why the issue was occurring though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.