sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Unable to upload workbench.aspx to an old created developer Site Collection

Open rgarita opened this issue 10 years ago • 5 comments

Hello

I have an old Developer Tenant. About 2 years old. I was trying to use the originally provisioned Developer Site Collection, but when I was trying to upload the workbench.aspx file, I got many issues. I got a lot of access denied errors. Even on SP Designer

What I did to make it work was, spin up a new fresh developer site collection. On the new one, I was able to upload the workbench.aspx file successfully

I was wondering, if may help put something on the documentation suggesting create a new developer site col.

2016-08-19_0-09-52

rgarita avatar Aug 19 '16 06:08 rgarita

thx Raul, added note on this to the guidance. Issue what you see is pretty strange, since that would imply that you can't upload any files to that site collection. workbench.aspx is just normal file to upload. Have though added a short note on the wiki at https://github.com/SharePoint/sp-dev-docs/wiki/Setup-SharePoint-Tenant.

VesaJuvonen avatar Aug 19 '16 06:08 VesaJuvonen

Yes, you need to create a developer site collection per the instructions - if you use the default root site collection you get access denied uploading the workbench.aspx. You can upload other file types - I think aspx is blocked but I didn't really dig any deeper.

SPDoctor avatar Aug 19 '16 08:08 SPDoctor

@SPDoctor, @VesaJuvonen you can't upload aspx-pages to the root-site-col because of the deactivated scripting (see https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f)

I activated scripting in the root site using powershell like this:

Connect-SPOService -Url https://[tenant]-admin.sharepoint.com -Credential [user]@[tenant].onmicrosoft.com
Set-SPOsite https://[tenant].sharepoint.com -DenyAddAndCustomizePages 0

nyn3x avatar Aug 19 '16 14:08 nyn3x

Thanks @nyn3x for pinpointing the reason.

SPDoctor avatar Aug 19 '16 15:08 SPDoctor

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 30 '20 12:01 msft-github-bot