The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER)) RRS feed

  • Question

  • I am using Word COM Interop to create a Word document in WCF Service which is hosted in IIS. Here is the code that we are using

    GeneratedDocument = WordApplication.Documents.Add(

    ref docTemplatePath, ref missing, ref missing, ref missing);

    ContentControls controls = GeneratedDocument.ContentControls;

    DataSet resultSets = this.executeStoredProcedure();

    After several debugging in various environments (like local, testing) we have made the below changes and made this service working.

    1. In DCom Config, for properties of {000209FF-0000-0000-C000-000000000046} key updated the Identity to This User and gave administrator privileges.
    2. Application Pool Identity in IIS is modified to the same Identity of above which is administrator.
    3. In Services.msc updated the IIS Admin Service to interact with local desktop.

    However when we deploy in the Staging environment we are getting "The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))" at "GenerateDocument.ContentControls" step.

    Can somebody help me in resolving this error?

    Friday, December 30, 2011 4:17 AM


  • Hi Vijay

    One definite possibility is that the application is displaying a message and waiting for the user to interact with it. There's no way to suppress this, which is a big reason why what you're trying to do (automate Word server-side) is neither recommended nor supported.

    Another possibility is that the application has "crashed", due to something in the server environment that's not allowing Documents.Add to execute properly. If this is Word 2010, for example, and the template is on the network there could be problems.

    There's really no way to tell without being able to see what's going on with Word on a monitor.

    The correct way to generate Word documents server-side is to use Open XML (see OpenXMLDeveloper.org) which doesn not require or use the Word APIs at all.

    Cindy Meister, VSTO/Word MVP
    • Marked as answer by Calvin_Gao Monday, January 9, 2012 3:20 AM
    Friday, December 30, 2011 8:56 AM