on-internet
← Community

How do I use AppPool credentials?

Stack Overflow ·

Our webapp is able to download files from Sharepoint and surface them to the user, but only if I provide my personal username and password to the process. I received a suggestion that: we "should use the credentials of the AppPool (UseDefaultCredentials=True.)" What changes do I make to for this to work with UseDefaultCredentials=True? And what is UseDefaultCredentials=true? string documentName = null; string contentType = "unknown"; // We don't want to use this method of credentials System.Net.NetworkCredential cred = new System.Net.NetworkCredential("USERNAME", "PASSWORD"); ClientContext cli

Comments

Sign in or sign up to comment and upvote.

No comments yet.