WCFHelloProject Error and TroubleShooting (PS 2010)

已答覆 WCFHelloProject Error and TroubleShooting (PS 2010)

  • 8 iunie 2010 15:30
     
     

    SetClientEndPoints returns an error in Output window

    A first chance exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Configuration.dll

    I then tried to add the following Try/Catch block to trap and identify the details of the exception.

     

     

    try{

    projectClient =

     

    new backendProject.ProjectClient(binding, address );

    }

     

     

    catch(System.Configuration.ConfigurationErrorsException x){

     

     

    Console.Write(x.BareMessage);

    }

    The Catch block does not trigger (why?)

    How can I get the details for this error?

Toate mesajele

  • 8 iunie 2010 18:10
     
     

    New Info:

    It appears that Project Server is complaining because "account" is null at Microsoft.Office.Project.Server.ClaimsHelper.ConvertAccountFormat(account). 

    Where is "account" stored/set?

  • 8 iunie 2010 23:02
    Proprietar
     
     

    Hi Hill57,

    Which authentication have you configured your Project Server site to use? I will review the SDK article and try it on my server.

    Best regards,

    Brian.


    Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page
  • 9 iunie 2010 14:38
     
     

    Windows authentication - Ntlm

    I look forward to your insight!  Thank you.

  • 9 iunie 2010 15:00
     
     

    Hello Brian,

    We are using Ntlm Windows authentication on the server.

    Thank you.

    -Kingsley

  • 11 iunie 2010 21:40
    Proprietar
     
     

    Hi Kingsley,

    I had a chance to test out the WCFHelloProject_vs10_CfgEd sample (as I was using VS10) and it just worked for me.  Looking at the code the account would be your user account so it should be picking this up.  Are you executing on the serveer that PWA is running on?

    Best regards,

    Brian


    Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page
  • 13 iunie 2010 02:20
    Moderator
     
     Răspuns

    Hi,

    The first exception you saw is a benign -- although annoying -- exception. You can avoid stopping on it if you add the fully qualified exception type to the exception dialog in VS.

    The second issue you see is because the account you pass (either explicitly or implicitly) is empty. Can you share some code such that we can see what is going on?

    Thanks,

    Boaz Lev

    MSFT

  • 14 iunie 2010 10:14
     
     

    Boaz and Brian,

    Thanks for the insight.  With the exception of adding some diagnostics to the code it is exactly as it is in the sample.  I will be happy to share the code.  Is there a trick to pasting code into this site without having it look really, really ugly (ie preserve some formating)?

    Thanks.

    -Kingsley

  • 15 iunie 2010 18:58
    Moderator
     
     

    Hi Kingsley,

    Can you shed some light on how you have set up authentication on your server? What authentication modes are enabled?

    Thanks,

    Boaz Lev

    MSFT