pnp/PnP

Provisioning.ModernPages sample error

Lagarto66 opened this issue · 0 comments

Category

[ ] Bug

Environment

[ ] Office 365 / SharePoint Online

Expected or Desired Behavior

Provision a page using ProvisioninhModerPage sample

Observed Behavior

Error:

System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'System.Threading.Tasks.Task Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()'.
Source=OfficeDevPnP.Core
StackTrace:
at Microsoft.SharePoint.Client.ClientContextExtensions.d__7.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay, String userAgent)
at Microsoft.SharePoint.Client.ClientContextExtensions.<>c__DisplayClass6_0.b__0()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay, String userAgent) at Microsoft.SharePoint.Client.ListExtensions.GetListByUrl(Web web, String webRelativeUrl, Expression1[] expressions)
at OfficeDevPnP.Core.Pages.ClientSidePage.LoadPageFile(String pageName, String& serverRelativePageName, File& pageFile)
at OfficeDevPnP.Core.Pages.ClientSidePage.Save(String pageName)
at Microsoft.SharePoint.Client.PageExtensions.AddClientSidePage(Web web, String pageName, Boolean alreadyPersist)

Is anyone able to help?