Network Credentials and Server in "Other" Domain.... RRS feed

  • Question

  • We have a custom application that pulls data from SharePoint and uses it to "seed" a new Project in Project Server (both on the same box). It worked great until IT moved the SharePoint server to a new domain. We previously accessed the box by just the server name (e.g. SPSRV01). Now the full domain name is needed to access the server (e.g. SPSRV01.IT.PITT.DOMAIN.COM) and the stored network credentials that previously worked now do not, so our Windows dotNet application can not login as the "Windows User" currently running the application.

    This is a code snippette:


    string projectURL = getProjectURL("ProjectService");
    project_service.Project projectClient = new project_service.Project();
    projectClient.Url = projectURL;
    projectClient.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;


    When prompted by the browser, if we pre-pend the user's domain to the login account - the browser logs us in successfully. Is there a way to do the same thing with the Default Network Credentials - or are we now forced to prompt for login credentials for our application (or save them encrypted with the application)?



    -- Anthony Baratta
    Friday, January 14, 2011 4:47 PM


  • The answer is to collect new credentials from the user. Either on demand, or save / cache them with the application.


    -- Anthony Baratta
    • Marked as answer by AnthonyAtApex Friday, January 28, 2011 6:19 AM
    Friday, January 28, 2011 6:19 AM