pnp / pnp/pnpframework

AuthenticationManager.GetContext hanging in asp.net page

Open
#447 7 comments 0 reactions 1 assignee View on GitHub

@jansenbe is already working on this.

Since Sep 6, 2021.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

When I try getting a context in an aspx or ashx page, it is stuck on the AuthenticationManager.GetContext call. But when I try the same thing in a console application, it completes instantly. Is there something I need to do differently in asp.net?

protected void Page_Load(object sender, EventArgs e)
{
PnP.Framework.AuthenticationManager authMgr = new PnP.Framework.AuthenticationManager(clientId, certPath, certPassword, tenantId);
Microsoft.SharePoint.Client.ClientContext context = authMgr.GetContext(siteUrl);
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.