The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

Answered The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

  • Monday, July 25, 2011 2:13 PM
     
      Has Code

    I am facing the Error: 

    I have also refer to this thread but without any luck :( 

    http://social.technet.microsoft.com/Forums/en-US/project2010custprog/thread/1cf951cc-56ac-4ffd-99b0-b5a8c73a2c67/

     //Make the string for opening project file from server
              string sProjectName = @"<>\" + ds.Tables["Rep"].Rows[i]["PROJECTNAME"].ToString() + "";
              
              object oMissing = System.Reflection.Missing.Value;
              
              //Set the properties to avoid message prompt on server side
              app.DisplayAlerts = false;
              app.DisplayScheduleMessages = false;
              app.DisplayWizardErrors = false;
              app.Visible = false;
              
              app.FileOpenEx(sProjectName, false, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing,
                      "MSProject.PSI.12", oMissing, Microsoft.Office.Interop.MSProject.PjPoolOpen.pjPoolReadWrite, oMissing, oMissing, oMissing, oMissing, oMissing);
    
    
    Note that i am using the PS 2010 with MSP 2010  


    Thanks, Parth

All Replies

  • Tuesday, July 26, 2011 8:51 AM
     
     
    Any updates on the same...
    Thanks, Parth
  • Wednesday, November 23, 2011 4:17 PM
     
     

    I'm getting the same thing when "CalculateAll()".

    Project Prof 2010.

    So far, I'm finding 2010 very frustrating.

  • Monday, August 13, 2012 10:47 AM
     
     
    any updates ????

    Thanks, Parth

  • Thursday, August 16, 2012 10:50 AM
     
     Answered

    After so many days, it seems that problem is with Connection of MSP, as when i start MSP 2010 through my C# Code, it starts in local mode, instead of connected mode with the server.

    Same code runs fine when i call the macro through the C# Code while the MSP 2010 is already opened in the connected mode with server.


    Thanks, Parth

    • Marked As Answer by Parth Rawal Thursday, August 16, 2012 10:50 AM
    •