Can't create an instance of Project class in Project web service RRS feed

  • Question

  • Hi all,

    I have problem when create an instance of Project class 

     WCFProject.Project projectTest = new WCFProject.Project();

    The error say Project is interface but I saw this code in many example about using project server service, such as:

    ProjectWebSvc.Project projectSvc = new ProjectWebSvc.Project(); projectSvc.Url = PROJECT_SERVER_URI + PROJECT_SERVICE_PATH; projectSvc.Credentials = CredentialCache.DefaultCredentials;

    Follow a friend, I config assembly proxy and import ProjectServerService.dll into my project but no help. I try use

    SvcProject in ProjectServerService.dll but still above error:

     SvcProject.Project projectSvc = new SvcProject.Project();

    Can somebody tell my solution

    Wednesday, September 19, 2012 10:20 AM

All replies

  • Hi,

    Did you define binding in the web.config file of your pwa application? Here  you can find the way to do it, though its quite brief but you'll be on your way. Let me know if you get stuck somewhere.


    Thanks, Kashif

    Wednesday, September 19, 2012 6:24 PM