please help

Jan 17 2005 5:31 AM
hi...i mad a code to create a new doc file, but it give me an error "Exception Details: System.Runtime.InteropServices.COMException: The message filter indicated that the application is busy." here is my code that generated that error : object fileName="C:\\Inetpub\\wwwroot\\OpenWordDocument\\Document\\MyWord.doc"; object noValue = System.Reflection.Missing.Value; Word.ApplicationClass objWord = new Word.ApplicationClass(); /* Exception Details: System.Runtime.InteropServices.COMException: The message filter indicated that the application is busy.*/ Word.Document objWordDoc = objWord.Documents.Add(ref noValue, ref noValue, ref noValue, ref noValue); objWordDoc.Activate(); objWord.Selection.TypeText(".NET Rocks!!!"); objWord.Selection.TypeParagraph(); objWord.Selection.TypeText("Sumit loves .NET"); objWord.Visible = true; objWordDoc.SaveAs(ref fileName, ref noValue, ref noValue, ref noValue,ref noValue, ref noValue, ref noValue, ref noValue, ref noValue,ref noValue, ref noValue); objWord.Quit(ref noValue, ref noValue, ref noValue); i had add com for MS Word, and had run DCOMCNFG.EXE to give ASP_NET user to access the source event to everyone. please help.... regards