PSI - ReadProjectList method requests different URL than has been set in ProjectService.Url RRS feed

  • Question

  • Hello, when I call ProjectService.ReadProjectList() in my webapp (ws), I am getting "No connection could be made because the target machine actively refused it server:8888". It is logical, becouse on server:8888 is nothing running. But where does he get this address?  I have following code:

    ProjectService.Url = "http://server/pwa/_vti_bin/psi/project.asmx";
                    ProjectService.UseDefaultCredentials = true;
                    ProjectDataSet prDetailDataSet;
                    CustomFieldDataSet csDataSet;
                    ProjectDataSet prDataSet = ProjectService.ReadProjectList(); <-this throw exception "No connection could be made because the target machine actively refused it server:8888"
    Thanks for any hint.
    Best regards RV.
    Thursday, March 31, 2011 1:25 PM

All replies

  • Hi rendalf,

    it's difficult to say, but, have you a firewall on that server? Or, have you a load balancer for project server environment?

    If you navigate to "http://server/pwa/_vti_bin/psi/project.asmx" on a web browser, what type of result you can get?

    I hope this can help you,

    best regards

    Paolo O.

    Saturday, April 2, 2011 11:17 AM
  • Hello Paolo, thank you for your reply. Navigating browser to http://server/pwa/_vti_bin/psi/project.asmx I am getting correct overview of  methotds this service is offering. The server is running on Server 2008 R2 and its firewall is on. I am not aware of running load balancer, it is DEV server, I assume there is no need to run load balancing. But I might be wrong, where could I check this please? How could firewall or this load balancer affect this?


    Monday, April 4, 2011 8:48 AM
  • Hi rendalf,

    sorry delay of my answer.

    Make sure that the right port number, 80, should not be blocked by your firewall by default.

    Can you try on Visual studio to adding a service reference http://server/pwa/_vti_bin/psi/project.asmx ? Can you add this reference without error?

    I found this:

    I hope this can help you,

    Best Regards,

    Paolo O.

    Friday, April 8, 2011 5:15 PM