GithubHelp home page GithubHelp logo

sharepoint / pnp-partner-pack Goto Github PK

View Code? Open in Web Editor NEW
140.0 140.0 168.0 22.5 MB

PnP Partner Pack has been archived. Please see SharePoint Starter Kit solution as replacement!

Home Page: https://github.com/SharePoint/sp-starter-kit

License: Other

C# 55.63% PowerShell 4.71% CSS 32.48% ASP 0.01% HTML 0.24% JavaScript 6.74% Roff 0.19%

pnp-partner-pack's People

Contributors

2p2-anthony avatar camiloborges avatar erwinvanhunen avatar hiltongiesenow avatar jansenbe avatar joelfmrodrigues avatar jquintozamora avatar koenzomers avatar luismanez avatar nickvdheuvel avatar nikhilsarvaiye avatar paolopia avatar rickenberg avatar siobhanbaynes avatar vesajuvonen avatar vman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pnp-partner-pack's Issues

Pages with webparts not provisionned

when provisionning a site from a site collection that has wikipages with webparts, the page are created without webparts as the original one.

Authentication error after web deploy step

Hi there,
First of all thanks for an amazing initiative and a great resource.
I'm having trouble authenticating the app after completing all the steps in guide.

Error which clicking on the PnP app is
AADSTS70001: Application with identifier '"9d7aec0c-3af0-408e-92fb-4140281f4d79"' was not found in the directory .onmicrosoft.com

Ive verified that the AppID mentioned in the error is infact correct and does exist as an AAD app in my 0365 tenant.
I've checked the app permissions especially the app and delegated permissions to other apps and it matches your guide.
also ensured that Enable Organizational Authentication is unchecked.

Any ideas or tips of what else to check?
Thanks is advance
Amir

Missing ADAL nuget reference for web jobs

Getting the below error:
[01/21/2016 16:11:48 > 20ab67: ERR ] Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.19.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.18.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Fix was to add the Microsoft.identitymodel.clients.ActiveDirectory to the web job solutions

getting exception details

Hi,
how can I find which field/list occured for the message below?

[04/27/2016 15:11:48 > 2631d4: INFO] 06/09 - List instances
[04/27/2016 15:12:58 > 2631d4: INFO] Exception occurred: Value does not fall within the expected range.
[04/27/2016 15:12:58 > 2631d4: INFO] Stack Trace:
[04/27/2016 15:12:58 > 2631d4: INFO] at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
[04/27/2016 15:12:58 > 2631d4: INFO] at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
[04/27/2016 15:12:58 > 2631d4: INFO] at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)
[04/27/2016 15:12:58 > 2631d4: INFO] at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery()
[04/27/2016 15:12:58 > 2631d4: INFO] at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery()
[04/27/2016 15:12:58 > 2631d4: INFO] at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
[04/27/2016 15:12:58 > 2631d4: INFO] at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay)
[04/27/2016 15:12:58 > 2631d4: INFO] at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectListInstance.CreateFieldRef(ListInfo listInfo, Field field, FieldRef fieldRef)
[04/27/2016 15:12:58 > 2631d4: INFO] at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectListInstance.ProvisionObjects(Web web, ProvisioningTemplate template, TokenParser parser, ProvisioningTemplateApplyingInformation applyingInformation)
[04/27/2016 15:12:58 > 2631d4: INFO] at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.ApplyRemoteTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation provisioningInfo)
[04/27/2016 15:12:58 > 2631d4: INFO] at Microsoft.SharePoint.Client.WebExtensions.ApplyProvisioningTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation applyingInformation)
[04/27/2016 15:12:58 > 2631d4: INFO] at OfficeDevPnP.PartnerPack.Infrastructure.Jobs.Handlers.SiteCollectionProvisioningJobHandler.CreateSiteCollection(SiteCollectionProvisioningJob job)
[04/27/2016 15:12:58 > 2631d4: INFO] at OfficeDevPnP.PartnerPack.Infrastructure.Jobs.Handlers.SiteCollectionProvisioningJobHandler.RunJobInternal(ProvisioningJob job)
[04/27/2016 15:12:58 > 2631d4: INFO] at OfficeDevPnP.PartnerPack.Infrastructure.Jobs.Handlers.ProvisioningJobHandler.RunJob(ProvisioningJob job)

New Site Collection Pending

Hey, thank you for the write up, and mostly complete documentation. Great stuff.

When i use the pnp web app to create my new site collections, i complete the new sites collection form, submit, and it "begins".. The status says "pending", the only problem is, its been pending for 3 days now. I created a second one, and it also has been pending for 2 days.

screen shot 2016-08-07 at 7 07 37 am

Looking at the infrastructure site, i can see the two continuous jobs, also pending.

Also below is some of the logging output.

[08/05/2016 06:47:49 > 44c742: SYS INFO] Detected WebJob file/s were updated, refreshing WebJob [08/05/2016 06:47:49 > 44c742: SYS INFO] Status changed to Starting [08/05/2016 06:47:49 > 44c742: SYS WARN] 'Always On' doesn't appear to be enabled for this Web App. To ensure your continuous job doesn't stop running when the SCM host is idle for too long, consider enabling 'Always On' in the configuration settings for your Web App. Note: 'Always On' is available only in Basic, Standard and Premium modes. [08/05/2016 06:47:50 > 44c742: SYS INFO] Run script 'OfficeDevPnP.PartnerPack.ContinousJob.exe' with script host - 'WindowsScriptHost' [08/05/2016 06:47:50 > 44c742: SYS INFO] Status changed to Running [08/05/2016 06:47:53 > 44c742: INFO] Found the following functions: [08/05/2016 06:47:53 > 44c742: INFO] OfficeDevPnP.PartnerPack.ContinousJob.Functions.ProcessQueueMessage [08/05/2016 06:47:53 > 44c742: INFO] Job host started [08/05/2016 06:57:55 > 44c742: SYS INFO] Detected WebJob file/s were updated, refreshing WebJob [08/05/2016 06:57:55 > 44c742: SYS INFO] Status changed to Stopping [08/05/2016 06:57:55 > 44c742: INFO] Job host stopped [08/05/2016 06:57:55 > 44c742: SYS INFO] Status changed to Success [08/05/2016 06:57:55 > 44c742: SYS INFO] Status changed to Stopped [08/05/2016 06:57:55 > 44c742: SYS INFO] Status changed to Starting [08/05/2016 06:57:55 > 44c742: SYS INFO] Run script 'OfficeDevPnP.PartnerPack.ContinousJob.exe' with script host - 'WindowsScriptHost' [08/05/2016 06:57:55 > 44c742: SYS INFO] Status changed to Running [08/05/2016 06:57:57 > 44c742: INFO] Found the following functions: [08/05/2016 06:57:57 > 44c742: INFO] OfficeDevPnP.PartnerPack.ContinousJob.Functions.ProcessQueueMessage [08/05/2016 06:57:57 > 44c742: INFO] Job host started [08/05/2016 07:01:17 > 44c742: SYS INFO] WebJob is stopping due to website shutting down [08/05/2016 07:01:17 > 44c742: SYS INFO] Status changed to Stopping [08/05/2016 07:01:17 > 44c742: INFO] Job host stopped [08/05/2016 07:01:17 > 44c742: SYS INFO] Status changed to Success [08/05/2016 07:01:17 > 44c742: SYS INFO] Status changed to Stopped [08/05/2016 07:01:25 > 44c742: SYS INFO] Status changed to Starting [08/05/2016 07:01:29 > 44c742: SYS INFO] Run script 'OfficeDevPnP.PartnerPack.ContinousJob.exe' with script host - 'WindowsScriptHost' [08/05/2016 07:01:29 > 44c742: SYS INFO] Status changed to Running [08/05/2016 07:01:30 > 44c742: INFO] Found the following functions: [08/05/2016 07:01:30 > 44c742: INFO] OfficeDevPnP.PartnerPack.ContinousJob.Functions.ProcessQueueMessage [08/05/2016 07:01:30 > 44c742: INFO] Job host started [08/05/2016 08:01:25 > 44c742: SYS INFO] WebJob is still running [08/05/2016 20:01:27 > 44c742: SYS INFO] WebJob is still running [08/05/2016 21:15:41 > 44c742: SYS INFO] Status changed to Disabling [08/05/2016 21:15:46 > 44c742: SYS INFO] Detected WebJob file/s were updated, refreshing WebJob [08/05/2016 21:15:46 > 44c742: SYS INFO] Status changed to Stopping [08/05/2016 21:15:47 > 44c742: INFO] Job host stopped [08/05/2016 21:15:47 > 44c742: SYS INFO] Status changed to Success [08/05/2016 21:15:47 > 44c742: SYS INFO] Status changed to Stopped [08/05/2016 21:15:56 > 44c742: SYS INFO] Detected WebJob file/s were updated, refreshing WebJob [08/05/2016 21:15:56 > 44c742: SYS INFO] Status changed to Starting [08/05/2016 21:15:56 > 44c742: SYS INFO] Run script 'OfficeDevPnP.PartnerPack.ContinousJob.exe' with script host - 'WindowsScriptHost' [08/05/2016 21:15:57 > 44c742: SYS INFO] Status changed to Running [08/05/2016 21:16:01 > 44c742: INFO] Found the following functions: [08/05/2016 21:16:01 > 44c742: INFO] OfficeDevPnP.PartnerPack.ContinousJob.Functions.ProcessQueueMessage [08/05/2016 21:16:01 > 44c742: INFO] Job host started [08/05/2016 21:32:50 > 44c742: SYS INFO] WebJob is stopping due to website shutting down [08/05/2016 21:32:50 > 44c742: SYS INFO] Status changed to Stopping [08/05/2016 21:32:50 > 44c742: INFO] Job host stopped [08/05/2016 21:32:50 > 44c742: SYS INFO] Status changed to Success [08/05/2016 21:32:50 > 44c742: SYS INFO] Status changed to Stopped [08/05/2016 21:33:09 > 44c742: SYS INFO] Status changed to Starting [08/05/2016 21:33:16 > 44c742: SYS INFO] Run script 'OfficeDevPnP.PartnerPack.ContinousJob.exe' with script host - 'WindowsScriptHost' [08/05/2016 21:33:16 > 44c742: SYS INFO] Status changed to Running [08/05/2016 21:33:18 > 44c742: INFO] Found the following functions: [08/05/2016 21:33:18 > 44c742: INFO] OfficeDevPnP.PartnerPack.ContinousJob.Functions.ProcessQueueMessage [08/05/2016 21:33:19 > 44c742: INFO] Job host started [08/05/2016 22:33:09 > 44c742: SYS INFO] WebJob is still running [08/06/2016 10:33:10 > 44c742: SYS INFO] WebJob is still running

I have stopped and restarted the web app, both web jobs are "ticked" green and happy in azure portal. What am i missing or doing wrong?

Timeouts when activating Composed Looks

We're getting occasional timeouts during composed look activation when provisioning a new site collection. This happens roughly once every 5 provisionings. Is it possible to increase / customize the timeout somewhere? As a workaround, I wrote an ExtensibilityHandler that activates the composed look (and catches any errors / retries) and removed it from the template. That works but feels odd.

[08/12/2016 09:18:39 > 21e9b2: INFO] 08/10 - Composed Looks
[08/12/2016 09:21:43 > 21e9b2: INFO] Exception occurred: The operation has timed out
[08/12/2016 09:21:43 > 21e9b2: INFO] Stack Trace:
[08/12/2016 09:21:43 > 21e9b2: INFO]    at System.Net.HttpWebRequest.GetResponse()
[08/12/2016 09:21:43 > 21e9b2: INFO]    at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
[08/12/2016 09:21:43 > 21e9b2: INFO]    at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)
[08/12/2016 09:21:43 > 21e9b2: INFO]    at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery()
[08/12/2016 09:21:43 > 21e9b2: INFO]    at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery()
[08/12/2016 09:21:43 > 21e9b2: INFO]    at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
[08/12/2016 09:21:43 > 21e9b2: INFO]    at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay)
[08/12/2016 09:21:43 > 21e9b2: INFO]    at Microsoft.SharePoint.Client.BrandingExtensions.SetThemeByUrl(Web web, String paletteServerRelativeUrl, String fontServerRelativeUrl, String backgroundServerRelativeUrl, Boolean resetSubsitesToInherit, Boolean updateRootOnly)
[08/12/2016 09:21:43 > 21e9b2: INFO]    at Microsoft.SharePoint.Client.BrandingExtensions.SetComposedLookByUrl(Web web, String lookName, String paletteServerRelativeUrl, String fontServerRelativeUrl, String backgroundServerRelativeUrl, String masterServerRelativeUrl, Boolean resetSubsitesToInherit, Boolean updateRootOnly)
[08/12/2016 09:21:43 > 21e9b2: INFO]    at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectComposedLook.ProvisionObjects(Web web, ProvisioningTemplate template, TokenParser parser, ProvisioningTemplateApplyingInformation applyingInformation)
[08/12/2016 09:21:43 > 21e9b2: INFO]    at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.ApplyRemoteTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation provisioningInfo)
[08/12/2016 09:21:43 > 21e9b2: INFO]    at Microsoft.SharePoint.Client.WebExtensions.ApplyProvisioningTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation applyingInformation)
[08/12/2016 09:21:43 > 21e9b2: INFO]    at OfficeDevPnP.PartnerPack.Infrastructure.Jobs.Handlers.SiteCollectionProvisioningJobHandler.CreateSiteCollection(SiteCollectionProvisioningJob job)
[08/12/2016 09:21:43 > 21e9b2: INFO]    at OfficeDevPnP.PartnerPack.Infrastructure.Jobs.Handlers.SiteCollectionProvisioningJobHandler.RunJobInternal(ProvisioningJob job)
[08/12/2016 09:21:43 > 21e9b2: INFO]    at OfficeDevPnP.PartnerPack.Infrastructure.Jobs.Handlers.ProvisioningJobHandler.RunJob(ProvisioningJob job)
[08/12/2016 09:21:43 > 21e9b2: INFO] 
[08/12/2016 09:21:43 > 21e9b2: INFO] Ending job

Composed Look definition in Template:

<pnp:ComposedLook Name="Company Blue" ColorFile="{themecatalog}/15/comppany_blue.spcolor" FontFile="" BackgroundFile="" Version="0" />

Error stepping through Site creation: Internal Server Error - Relative Url length to long

I've found that you receive the error "Error stepping through Site creation: Internal Server Error", if your site collection relative url is too long (greater than 33 characters).

The error is generated in the EnqueueProvisioningJob method of the SharePointProvisioningRepository.cs (within the Infrastructure project). In the EnqueueProvisioningJob method, line 268, the listitem title field is set. The title field no doubt has a 255 character limit which is exceeded if your site collection relative url is too long.

In my case I've put a [MaxLength(33)] attribute against the RelativeUrl property of the CreateSiteViewModel to stop this error occurring. Another option would be trim the job.Title value to 255 characters.

Regards
Pete

Subsite Creation: Site Description is not set

With the Partner Pack, and creating sub sites within a site collection, we are seeing that the sub site's description is not getting set, even though it was entered in the create sub site form. I can see that the description does get included in the .job file, but the sub sites get created and everything is proper except for the description.

It seems as though this would be a straightforward thing, as Partner Pack is using the normal construct to create subwebs with CSOM, but I am baffled as to why it is failing to set the description Any ideas?

Automatic certificate rollover handling

Hi,
we recently received an email warning :
The Azure Active Directory (Azure AD) certificate associated with one or more of your applications will roll over, does the core handle this automatically or do I need to re-issue a key and update web.config?
Thanks

Not able to provision site collection by using site template xml file.

Hello Team,

I have completed the PnP partner pack set up by following the channel9 Video. Everything is working as expected. I have provisioned one site collection by using default blank template provided. Site got created. After that i added Discussion Board, Calendar, and Usefull Links webpart to home page of this site and Saved this site as template. I am trying to provision another site collection by using this template. Site is getting created but template is not applied. It is still taking blank template only. in We b Job logs also no errors reported. Please help if somebody faced the same kind of issue. Thanks in advance

Provisioning jobs remain pending

So... Webjobs are running however, my site collection provisioning as well subsite provisioning jobs are still pending for days.
in the webjobs dashboard I dont see any errors or activity for continousjob only following:
[07/12/2016 12:41:15 > 65012a: SYS INFO] Status changed to Running
[07/12/2016 12:41:18 > 65012a: INFO] Found the following functions:
[07/12/2016 12:41:18 > 65012a: INFO] OfficeDevPnP.PartnerPack.ContinousJob.Functions.ProcessQueueMessage
[07/12/2016 12:41:18 > 65012a: INFO] Job host started

so the queue name that is see in projects is set as a constant "pnppartnerpackjobsqueue" in the PnPPartnerPackSettings class and is referenced by the PnPPartnerPackSampleConfiguration xml. this i assume I should not need to modify, correct?

I discoverd the functions log in the azure webjobs dashboard and I see the attached error. can you help me understand the issue. is it related to the certificate?

webjobs error

Create Site Issues....

I'm seeing two issues with creating new Site Collections using a template created via the Save Site as Template feature. We created a custom Site Collection, with a set of targeted Lists (News & Announcements, Calendar, Documents and Tasks), and several "custom" Content Search Web Parts on the home page. We have Publishing turned on at both the site collection level and the site level. (Also some branding with custom logo and alternate css file.) Lastly, we enabled the Partner Pack Extensions for the custom Site Collection and successfully saved that as a Template.

However, when we attempt to use that template it fails on applying "Site Security" with errors like "The specified user Hierarchy Managers could not be found." or "The specified user Designers could not be found." I'm guessing that these "users" should be part of the Publishing Feature, which has not yet been enabled. Therefore shouldn't features run before Site Security?

If we rip out the whole Site Security Section, the update times out waiting for the Features Handler to finish. So far I have the time-out set for 10 minutes, and will be testing a longer time out (1 hour) out of curiosity.

While attempting to remote debug the web job (PartnerPack.ScheduledJob), it appears you can't remotely attach to a scheduled/on-demand web job. What is everyone else doing to debug ScheduledJob? Do you make it a continuous job in order to attach to it?

Has anyone successfully created a new site collection with a template saved from a Site Collection with publishing turned on? Or is the Best Practice to start empty and turn on all the features and upload any custom web parts separately, piece meal?

Create Site Collection :: Select a Template blank, no listing...

Howdy...

I've published the Partner Pack Web Application as per the documentation, but I don't see a listing of Templates to select from to start the Auto-Provisioning Process. I believe I can communicate with SPO because when i go to Settings, I can see a list of Site Collections. And enable/disable Partner Pack on targeted Site Collections.

Any ideas why I can't see the Default Template List?

Responsive UI package for the Office 365 SP sites

Hi,

I only need to implement the responsive feature for an SharePoint 2013 online site but even though the docs mention that the PnP package doesn't have to be installed to use this, there is no guide on how to actually achieve this.

Can anyone assist with this?

Thanks

Newtonsoft dll error while installing the Templates

Hi,

I am getting the following error on running the power shell command let for Provisioning the template.

PowerShell Command
Apply-SPOProvisioningTemplate -Path "[Partner-Pack-Source-Code-Folder]\OfficeDevPnP.PartnerPack.SiteProvisioning\OfficeDevPnP.PartnerPack.SiteProvisioning\Templates\Infrastructure\PnP-Partner-Pack-Infrastructure-Jobs.xml"

ERROR
Apply-SPOProvisioningTemplate : Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral,
PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.

Has anyone else encountered the same issue ?
Thanks in advance.
Rajesh

Confusing samples

The Configure-Configs.ps1 script contains 2 samples with different parameters, one uses CertificatePath and one uses CertificateThumbprint. Why are there 2, which is correct?

Azure Instructions out of date

The instructions explain how to use the old Azure Portal. Can these be update to explain what needs to be done in the new site at portal.azure.com

New Feature : Site Approval Process on Site Creation and Dashboards

Hi Paolo,

Is it possible to add the following features in PnP-Partner-Pack 3.0? This way it will become like a product and anyone can use without even customizing the code.

  1. Configurable labels displayed in the forms (app icon, name, footer, etc.,)
  2. Site Approval Process before creating a subsite (primary and backup approvers kind of)
  3. Dashboard (My Tasks, Sites Requested, Approved, Rejected, Failed)

We are already using PnP-Partner-Pack as our bench mark :)

Save template with image - image URL not properly set

When you save template and provide preview image for the template - that image is not properly saved to the template xml. This will result template not to have the right preview image when end users are selecting template to be applied.

Nuget will not pull various dependencies

This almost seems like an issue with Nuget, but I'm not sure here. On initial clone & build attemp Nuget fails to download the following packages:

Microsoft.Net.Compilers 1.0.0
WindowsAzure.Storage 6.0.0
System.Spatial 5.6.3

Should these dependencies be updated in the project?

supported site templates

Hi,
I tried creating meeting/community based templates but only team sites work , are they supported?
Thanks

ContinousWebJob Pending Restart

Hi there,

I've published the 2 azure web jobs as suggested in your video and tried creating a site collections which is stuck on pending.

The continous webjob status is pending restart and the logging suggests to run an exe:
[07/10/2016 16:57:16 > 65012a: SYS ERR ] Job failed due to exit code -532462766
[07/10/2016 16:57:16 > 65012a: SYS INFO] Process went down, waiting for 60 seconds
[07/10/2016 16:57:16 > 65012a: SYS INFO] Status changed to PendingRestart
[07/10/2016 16:58:16 > 65012a: SYS INFO] Run script 'OfficeDevPnP.PartnerPack.ContinousJob.exe' with script host - 'WindowsScriptHost'
[07/10/2016 16:58:16 > 65012a: SYS INFO] Status changed to Running

However running this exe triggers and error stating that a storage account is not configured correctly:
Unhandled Exception:
System.InvalidOperationException: Failed to validate Microsoft Azure WebJobs SDK Dashboard connection string. The Microsoft Azure
Storage account connection string is not formatted correctly. Please visit
http://msdn.microsoft.com/en-us/library/windowsazure/ee758697.aspx for details about configuring Microsoft Azure Storage connection
strings.
at Microsoft.Azure.WebJobs.Host.Executors.StorageAccountParser.ParseAccount(String connectionString, String connectionStringName,
IServiceProvider services)
at Microsoft.Azure.WebJobs.Host.Executors.DefaultStorageAccountProvider.get_DashboardAccount()
at Microsoft.Azure.WebJobs.Host.Executors.DefaultStorageAccountProvider.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Azure.WebJobs.Host.Executors.JobHostContextFactory.d__b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.Host.Executors.JobHostContextFactory.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.JobHost.d__f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.JobHost.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.JobHost.Start()
at Microsoft.Azure.WebJobs.JobHost.RunAndBlock()
at OfficeDevPnP.PartnerPack.ContinousJob.Program.Main() in C:\Users\amirk\Downloads\PnP-Partner-Pack-master\OfficeDevPnP.PartnerPack.
SiteProvisioning\OfficeDevPnP.PartnerPack.ContinousJob\Program.cs:line 19

I haven't created any storage accounts nor have I added any connection strings. Have I overlooked something?
(see attachments)
Thanks
Amir
pnpwebjobs-pending
pnpwebjobs-error

Error in Website

Hi perhaps someone give me a hint whats going wrong - when i opening the web app i get error ... only thing i found in log is:

The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located. (D:\home\site\wwwroot\web.config line 148)
at System.CodeDom.Compiler.CompilerInfo.get_CodeDomProviderType()
at System.Web.Configuration.CompilationSection.GetCompilerInfoFromLanguage(String language)
at System.Web.UI.TemplateParser.ProcessLanguageAttribute(String language)
at System.Web.UI.TemplateParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value, IDictionary parseData)
at System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary mainDirective)

Did i miss something in tutorial?

Create Site Collection fails if Site Collection Admin has no email from people picker

Currently the code that creates the job entry assumes that the user entered for the primary and secondary site collection administrator has the email returned from the people picker.

Values for PrimarySiteCollectionAdmin and SecondarySiteCollectionAdmin sent to the controller:

PrimarySiteCollectionAdmin:[{"Login":"i:0#.f|membership|admin@[tenant].onmicrosoft.com","Name":"Admi Strato","Email":""}]
SecondarySiteCollectionAdmin:[{"Login":"i:0#.f|membership|admin@[tenant].onmicrosoft.com","Name":"Admi Strato","Email":""}]

The following code (lines 118 - 121 in HomeController.cs)
ob.PrimarySiteCollectionAdmin = model.PrimarySiteCollectionAdmin != null && model.PrimarySiteCollectionAdmin.Length > 0 ? model.PrimarySiteCollectionAdmin[0].Email : null; job.SecondarySiteCollectionAdmin = model.SecondarySiteCollectionAdmin != null && model.SecondarySiteCollectionAdmin.Length > 0 ? model.SecondarySiteCollectionAdmin[0].Email : null;

This results in the following job being persisted in the SharePoint list:

{
  "PrimarySiteCollectionAdmin": "",
  "SecondarySiteCollectionAdmin": "",
  "StorageMaximumLevel": 0,
  "StorageWarningLevel": 0,
  "UserCodeMaximumLevel": 0,
  "UserCodeWarningLevel": 0,
  "ExternalSharingEnabled": false,
  "PartnerPackExtensionsEnabled": true,
  "ResponsiveDesignEnabled": true,
  "SiteTitle": "asdfasdf",
  "RelativeUrl": "/sites/asdfasdf",
  "SitePolicy": "LBI",
  "Description": null,
  "Language": 1025,
  "ProvisioningTemplateUrl": "https://[tenant].sharepoint.com/sites/PnP-Partner-Pack-Infrastructure/PnPProvisioningTemplates/TestDriveRoot.xml",
  "TimeZone": 39,
  "TemplateParameters": null,
  "JobId": "7c4645e5-bd43-4074-a0ef-07f2a0a8c454",
  "Title": "Provisioning of Site Collection \"/sites/asdfasdf\" with Template \"https://[tenant].sharepoint.com/sites/PnP-Partner-Pack-Infrastructure/PnPProvisioningTemplates/TestDriveRoot.xml\" by admin@[tenant].onmicrosoft.com",
  "Owner": "admin@[tenant].onmicrosoft.com",
  "Status": 2,
  "ErrorMessage": null
}

When the job for this request is executed it fails with the message: The Owner property is required for site creation and was not supplied.

In this case the owner was the also the account selected using the people picker.

Perhaps if both the Site Collection Admins are null this process should throw and exception before persisting the job as

New subsite pnp templates not available

I have enabled the pnp partner pack to me existing site collections. When i create a new subsite, i do not get the new pnp site templates, i just see the regular old new subsite form.

Not responsive on mobile

Hey after installing and configuring, my new site collection is "responsive" within a computer browser, however it is not on a mobile device.

Is anyone experiencing this?

Search Configuration Apply Error

When I am trying to apply search configuration I am getting an error. When I am using the same template with the powershell it is working fine.

ServerException was caught
The server was unable to process the request due to an internal error.
For more information about the error, either turn on IncludeExceptionDetailInFaults
(either from ServiceBehaviorAttribute or from the configuration behavior)
on the server in order to send the exception information back to the client, or turn on
tracing as per the Microsoft .NET Framework SDK documentation and inspect the server
trace logs.

Use of Azure Classic Portal

How come the classic Azure portal is used to create the App Service instead of the Portal? Would there be any benefit to putting the PnP artifacts into an Azure Resource Group?
I'm looking forward to demonstrating this to my new client.

Site Storage Value Ignored...

When we create new Site Collections, the Storage Maximum Level Value is being ignored. Doesn't matter what we enter it's only deploying the site with 1 GB of space. What is the expected units for this field? MBs? GBs?

OneColumnSideBar Wiki Page Layout

The PageLayout OneColumnSideBar is no accepted in a provisioning template.

Apply-SPOProvisioningTemplate : The provided template is not valid!

The direct coding is possible and works fine.

web.AddLayoutToWikiPage("SitePages", OfficeDevPnP.Core.WikiPageLayout.OneColumnSideBar, "Homepage.aspx");

App only permissions

Since the introduction of Application permissions in Azure AD (Read and write managed metadata) see Manual-Setup-Guide.md, it is possible to create termgroups.

Should the OfficeDevPnP.Core.Framework.Provisioning.Model.Handlers.TermGroups still be excluded or can this Handler now be used?

If it can be used the "Architecture-and-Implementation.md" -> "Taxonomies Support"-section should be revised.

Doc update: provide some more context on deploying the Azure web site

I got a strange auth exception because i forgot to uncheck the "Enable Organizational Authentication" checkbox...

Second thing is that ApplicationDBContext got prepopulated as I already deployed apps using a SQL Azure database in the past...this value should be cleaned...this will not cause problems, but better avoid the confusion

"File Not Found" when provisioning a site that has a composed look

Hi, I've been testing the PnP Partner Pack provisioning process. I've created a simply site collection template which simply provisions a team site with a custom logo and composed look. The composed look only contains a ColorFile (I've attached the associated template).

When I use the template to provision a new site collection, I receive a "File Not Found" error when the engine attempts to apply the template. I've managed to debug the associated ScheduledJob and I've found that the issue occurs with the token replacement, in which the token {sitecollection} and {themecatalog} get replaced with an empty string. When I traced it further I found that call to Web.Context.GetSiteCollectionContext (ThemeCatalogToken.cs) actually returned to the tenant admin site collection context (https://-admin.sharepoint.com)... rather than the context of the newly created site collection. Because of this the {themecatalog} token simply came back as /_catalogs/theme... rather than //_catalogs/theme. I'll try and debug it further to see why it's getting the tenant admin context.

template-minimal.txt

Blank Site collection

I have setup PnP partner pack on O365 developer license and created site collections.
All works fine the jobs are completed successfully and the site collection are provisioned. But whenever i access the site collection I see blank site (means a total blank page). Can anyone let me know what could be the issue here?

Batch creation of site collections

Demonstration of batch creation of site collections based on csv file, which is read and then messages for site collection creation are added to Azure storage queue for creation.

Alternative model for site collection creation.

Settings :: Enable Partner Pack using temp AzureWebsites URL...

During setup, the AzureWebSite URL I put into configure the Web App was found to be already taken, so I updated the URL to something unique and then re-ran all the config tools. The Pnp-Partner-Pack-Overrides was correctly updated with the new URL, but when I enable the Partner pack with an existing Site Collection it's embeding the original URL.

I've done a full solution search for the olde URL using several different variations from Full to Partial, and can't find any left overs. I've download the Web App version for comparision and it's setup correctly. And I've re-published the Web App several times. (I don't think I published the web app before I updated the AzureWebSiteUrl to the correct URL, but something is holding on to it somewhere.)

Thoughts on where to start looking to fix this?

cant see the

Hi,

I am in Azure AD management, but I cant see Office 365 SharePoint Online in the "permissions to other applications". I am following the steps in the manual setup guide. Just after clicking the "Add Application" button.

any ideas?

thanks

Access denied. You do not have permission to perform this action or access this resource.

I am able to create site collection and sub site by provisioning framework using Apponly permission.

but when it calls this code, i am getting below error
Access denied. You do not have permission to perform this action or access this resource.
web.ApplyProvisioningTemplate(template, ptai);

I have applied Tenant level permission to app, so i am able to create site collection as well.

Permission applied to App is as per below:


Let me know where i am missing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.