Word and Excel get "RPC server is unavailable" exception when RDC is established to Win Server 2012

%3CLINGO-SUB%20id%3D%22lingo-sub-2783940%22%20slang%3D%22en-US%22%3EWord%20and%20Excel%20get%20%22RPC%20server%20is%20unavailable%22%20exception%20when%20RDC%20is%20established%20to%20Win%20Server%202012%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2783940%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20c%23%20program%20that%20implements%20some%20automation%20tasks%20with%20Office%20PIA%20(P%3CSPAN%3Erimary%20Interop%20Assembly)%20in%20Windows%20Server%202012%3C%2FSPAN%3E.%26nbsp%3B%20It%20works%20fine%20until%20a%20RDC%20(Remote%20Desktop%20Connection)%20is%20established%20by%20another%20user.%26nbsp%3B%20A%20COM%20exception%20of%20%22RPC%20server%20is%20unavailable%22%20is%20thrown%20and%20the%20application%20errors%20from%20event%20viewer%20are%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IMG_20210909_155720.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F312815iBB83A2C5D551C70B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22IMG_20210909_155720.jpg%22%20alt%3D%22IMG_20210909_155720.jpg%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IMG_20210909_155746.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F312816iD1D907679355A67A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22IMG_20210909_155746.jpg%22%20alt%3D%22IMG_20210909_155746.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMay%20I%20know%20is%20it%20an%20installation%2Fdeployment%20issue%20of%20Office%20365%20in%20a%20RDS%20server%3F%20How%20can%20I%20fix%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2783940%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I have a c# program that implements some automation tasks with Office PIA (Primary Interop Assembly) in Windows Server 2012.  It works fine until a RDC (Remote Desktop Connection) is established by another user.  A COM exception of "RPC server is unavailable" is thrown and the application errors from event viewer are

 

IMG_20210909_155720.jpgIMG_20210909_155746.jpg

 

May I know is it an installation/deployment issue of Office 365 in a RDS server? How can I fix it?

 

Thank you.

 

0 Replies