Forum Discussion
Exception while executing code from PnP - CustomCssWeb
Can you uninstall the add-in by right clicking the SP project in VS. Once that's done try to deploy again using F5...you should get a prompt of SharePoint asking you to consent the add-in to use the permissions it requests. Without that consent done the add-in has no permissions, hence the access denied your seeing.
Thanks Bert. I ran the project using F5, it asked me to trust a certificate for the project locally. Then when it opened SharePoint, it asked me to trust this App, which I did.
- BertJansenSep 13, 2016
Microsoft
Which platform are you targetting: SPO?
Which browser are you launching when you press F5 in Visual Studio?
Are you a site collection administrator of the site you're installing into and is that site a developer site collection?
- Brittany RutherfordSep 22, 2016Copper Contributor
Hi Bert,
I am using Visual Studio 2015 with SPO. Default browser is Chrome.
I am the tenant admin/site collection admin