none
Unhandled fault exception occured on calling Project Server PSI RRS feed

  • Question

  • MS Project Server 2010 has been working fine .But when i call it throug PSI unexpected error occured.

    My Code snipped is attached here with. I have tried to call PSI in both ways as Web reference and as Service Reference

    With WebReference


      WSProject.ProjectDataSet _pds = new MSP2010FormApp.WSProject.ProjectDataSet();
              
                    string _url = "http://kovair-virsrv3:11111/Proj/_vti_bin/PSI/Project.asmx";
                    WSProject.Project _proj = new MSP2010FormApp.WSProject.Project();
                    _proj.PreAuthenticate = true;
                    _proj.Url = _url;
                    _proj.Credentials = new NetworkCredential(_uName, _passWord, _domain);
               
                    _pds = _proj.ReadProjectList();

    Exception

    Message :Unhandled Communication Fault occurred

    StackStace:

       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

    With Service Reference

     WSProjectSvc.ProjectDataSet _projDataset= new MSP2010FormApp.WSProjectSvc.ProjectDataSet();
                    string _url = "http://kovair-virsrv3:11111/Proj/_vti_bin/PSI/ProjectServer.svc";
                    _projDataset=PopulateData(_projDataset, "ProjectServiceTest2010",true);
                    WSProjectSvc.ProjectClient _projClient = new MSP2010FormApp.WSProjectSvc.ProjectClient("BasicHttpBinding_Project1");
                  
                    _projClient.ClientCredentials.Windows.ClientCredential = new NetworkCredential(_uName, _passWord, _domain);
               
                    _projDataset = _projClient.ReadProjectList();

    Exception

    Message :Unhandled Communication Fault occurred

    Stack Stace

    .ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

    ULS Log Entry:


    System.ArgumentNullException: Value cannot be null.  Parameter name: account     at Microsoft.Office.Project.Server.ClaimsHelper.ConvertAccountFormat(String account)     at Microsoft.Office.Project.Server.AuthenticationHelper.AuthenticateUserByName(String userName, Guid siteId)    7242eb55-ca93-43ab-8f02-9d450c684d61


    I have tried  to pick the project list from Power shell script also,but the error is same.

    My project Server is installed in virtual machine.

    Any suggessions for where to look would be appreciated

    Thank You


     





    Thursday, June 28, 2012 3:30 PM

All replies

  • Hi,

    Are you trying to access your PS from host machine or accessing within vm? Secondly, have you define your end point in web.config?


    Thanks, Kashif

    Saturday, June 30, 2012 7:25 AM
  • Thanks for replay..

    yeah ,  the pwa is hosted in virtual machine i am trying to access from that virtual machine and also from my development machine. In both case the error is same.  i also try to access from Power shell also.

    yes,i have defined my end point in web config.

    my  webConfig is  

    <system.serviceModel>
            <bindings>
                <basicHttpBinding>
                    <binding name="BasicHttpBinding_Project" closeTimeout="00:01:00"
                        openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                        allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                        maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                        messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                        useDefaultWebProxy="true">
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                        <security mode="None">
                            <transport clientCredentialType="None" proxyCredentialType="None"
                                realm="" />
                            <message clientCredentialType="UserName" algorithmSuite="Default" />
                        </security>
                    </binding>
                    <binding name="BasicHttpBinding_Project1" closeTimeout="00:01:00"
                        openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                        allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                        maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                        messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                        useDefaultWebProxy="true">
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                        <security mode="None">
                            <transport clientCredentialType="None" proxyCredentialType="None"
                                realm="" />
                            <message clientCredentialType="UserName" algorithmSuite="Default" />
                        </security>
                    </binding>
                </basicHttpBinding>
            </bindings>
            <client>
                <endpoint address="http://kovair-virsrv3.kovairindia.com:32843/8b6b31313c82447590ef4f7396b23934/PSI/Project.svc/secure"
                    binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_Project"
                    contract="WSProjectSvc.Project" name="BasicHttpBinding_Project" />
                <!--<endpoint address="http://kovair-virsrv3.kovairindia.com:32843/8b6b31313c82447590ef4f7396b23934/PSI/Project.svc"
                    binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_Project1"
                    contract="WSProjectSvc.Project" name="BasicHttpBinding_Project1" />-->
              <endpoint address="http://kovair-virsrv3:11111/Proj/_vti_bin/PSI/ProjectServer.svc"
                   binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_Project1"
                   contract="WSProjectSvc.Project" name="BasicHttpBinding_Project1" />
            </client>
        </system.serviceModel>



    Monday, July 2, 2012 2:28 PM
  • I'm sorry couldn't get back earlier. Has it been solved now? Have you downloaded the sdk and create you psi dll? In your sdk (Start>All Program > MS SDK> Project Server SDK> Welcome Guide, here you'll find all the resources regarding accessing PS via PSI. If you still have problem kindly me know.


    Thanks, Kashif

    Saturday, July 7, 2012 5:28 AM