Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

[Question] GetWebLoginClientContext error when run under IIS #2808

Description

@shikelong

Which PnP repository should you use to report the issue?

Environment

[x] Office 365 / SharePoint Online
.Net env: .Net framework 4.6.1
Package verson: Install-Package SharePointPnPCoreOnline -Version 3.27.2011
OS: Windows 10

Expected or Desired Behavior

When I run my code in visual studio, the GetWebLoginClientContext function display the authentication window, automatically close and return the ClientContext

Observed Behavior

If I publish my code to IIS and call GetWebLoginClientContext via browser UI, I got a error, the detail is

Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

How to fix it ? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions