ASP.NET - Creating word document - Asked By Anandh Ramanujam on 29-Nov-11 02:57 AM

Hi,

I am creating word document from my web application.

I am getting the error: The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))

I am getting this error while run my code in Windows server 2003. But when i run the code in Windows 7, it works great.

Can anybody pls help me this regard.

Thanks
Jitendra Faye replied to Anandh Ramanujam on 29-Nov-11 03:14 AM
Reference from-

http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/c11ffffd-0385-40f7-b32f-77077de87617/

1) Yes, your application is the COM client, and Project is the COM server.
2) I'm not sure what you are asking here--what do you mean by "interop declarations"? 
3) There isn't any default implementation of RetryRejectedCall.
4) No, you need to implement and register a message filter in your client.  IMessageFilter is a strange interface because it has both client and server methods on it.  You only care about implementing RetryRejectedCall.  You will need to create a class that implements this (you can just throw NotImplementedExceptions for the other methods).  Then you will need to P/Invoke the Win32 CoRegisterMessageFilter function to get it registered.


hope this will help you.
Venkat K replied to Anandh Ramanujam on 29-Nov-11 03:18 AM

You will probably find that Word is showing a dialog box. Make it visible so that you can see what the dialog is.
    wordApp.DisplayAlerts := wdAlertsNone;

 will also help suppress warning dialogs
    doc.Saved = true;   
will stop it from prompting you to save changes when you close the document.

kalpana aparnathi replied to Anandh Ramanujam on 29-Nov-11 04:23 AM
Try this link:

http://www.codeproject.com/KB/aspnet/wordapplication.aspx