Prompt option is invalid because process is not interactive

  azure, c++, iis, web-site-project, windows

We have Automated ADO ticket creation form in c# which allow users to input ticket title body when click of Submit button if we use admin account PAT token it creates ticket automatically.

In order to make user who creates ticket as submitter which helps them to follow ticket updates we are trying to submit ticket with interactive credentials.

using below code to connect to ADO.

        Uri _uri = new Uri(collectionUri);
        var creds = new VssClientCredentials(new WindowsCredential(false),
                                 new VssFederatedCredential(),
                                 CredentialPromptType.PromptIfNeeded);
        creds.Storage = new VssClientCredentialStorage();

        VssConnection vssConnection = new VssConnection(_uri, creds);
        await vssConnection.ConnectAsync();

Local debugging just works fine and creates a ticket but when we host this to IIS it reports below error.

enter image description here

Any suggestions what settings do we need to enable to make the process interactive.

It is a website which is interactive and takes user input for ticket title body and other inputs.

Source: Windows Questions

LEAVE A COMMENT