473,407 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

The message filter indicated that the application is busy

Hi,
I'm trying to write an ASP.NET page using VS.NET 2003, Office 2003, Win 2000
but I keep gettin this error:
"The message filter indicated that the application is busy" this is the code.
================================================== ===
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oWordApplication As Word.Application
Dim oDoc As Word.Document
Dim strTemp As String
oWordApplication = New Word.Application
oDoc = oWordApplication.Documents.Add
oDoc.Activate()
oWordApplication.Selection.TypeText("Hi This My First Test Document")
oWordApplication.Selection.TypeParagraph()
oWordApplication.Selection.TypeText("Please resd the following lines carefully!")
oWordApplication.Selection.TypeParagraph()
oWordApplication.Selection.TypeText("Continue reading on the next page...")
oWordApplication.Selection.TypeParagraph()
oDoc.SaveAs("E:\Inetpub\wwwroot\SampleWebApp\WebQA \MyFirstDoc1.doc")
oDoc.Close()
oWordApplication.Quit()
Label2.Text = " Word Doc is saved..."
End Sub
================================================== ===
This error only occurs on the second time click on line oDoc.Activate() line, I also tried all of the followings but still the same problem.
A- I noticed after the error the Winword.exe process still running on the task manager and I cannot kill it.
B- I also tired a simpler version of the code create a oWordApp object and oWordApp.Quit() the same issue I think ASP cannot quit the process.
C- I tried the same code on a Windows Form and it worked.
D- I tried to increase the TerminateTime = infinite on Machine.Config file of the .NET framework configuration but still the same issue.
E- I assigned Admin rights to ASPNET user but the same Issue.
F- I also noticed a file Normal.dot created after the error on my system drive (E:\Normal.dot) which I cannot delete it says "File in use"
Conclusion: My ASP.NET application cannot terminate the Word process!
Can anyone give me some other suggestions?

Thank you.
Nov 18 '05 #1
1 9615
mtermoul wrote:
Hi,
I'm trying to write an ASP.NET page using VS.NET 2003, Office 2003, Win 2000
but I keep gettin this error:
"The message filter indicated that the application is busy" this is the code.
================================================== ===
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oWordApplication As Word.Application
Dim oDoc As Word.Document
Dim strTemp As String
oWordApplication = New Word.Application
oDoc = oWordApplication.Documents.Add
oDoc.Activate()
oWordApplication.Selection.TypeText("Hi This My First Test Document")
oWordApplication.Selection.TypeParagraph()
oWordApplication.Selection.TypeText("Please resd the following lines carefully!")
oWordApplication.Selection.TypeParagraph()
oWordApplication.Selection.TypeText("Continue reading on the next page...")
oWordApplication.Selection.TypeParagraph()
oDoc.SaveAs("E:\Inetpub\wwwroot\SampleWebApp\WebQA \MyFirstDoc1.doc")
oDoc.Close()
oWordApplication.Quit()
Label2.Text = " Word Doc is saved..."
End Sub
================================================== ===
This error only occurs on the second time click on line oDoc.Activate() line, I also tried all of the followings but still the same problem.
A- I noticed after the error the Winword.exe process still running on the task manager and I cannot kill it.
B- I also tired a simpler version of the code create a oWordApp object and oWordApp.Quit() the same issue I think ASP cannot quit the process.
C- I tried the same code on a Windows Form and it worked.
D- I tried to increase the TerminateTime = infinite on Machine.Config file of the .NET framework configuration but still the same issue.
E- I assigned Admin rights to ASPNET user but the same Issue.
F- I also noticed a file Normal.dot created after the error on my system drive (E:\Normal.dot) which I cannot delete it says "File in use"
Conclusion: My ASP.NET application cannot terminate the Word process!
Can anyone give me some other suggestions?

Thank you.

I've done some similar work in C#, and ran into similar problems when I
was passing a System.Reflection.Missing class reference for most of the
parameters. Try passing some values in the oDoc.Close() method or the
oWordApplication.Quit() method to get it to work. The parameters refer
to things like "Save" and whatever.
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Google Mike | last post by:
I need an Application object replacement. I was creating my own using shared memory -- shm* API in PHP. I was doing fine for 6 months until it just got too fat, I guess, and the RH9 Linux server...
0
by: Don Stevic | last post by:
I am running VS2005 and using VSTO for Word. I keep getting this error saying that there is no source code available for this location when I try and run this application. I am going to...
0
by: Malcolm Cook | last post by:
I've discovered: Using "File > Print Preview" in a form's datasheet view with a server Filter crashes access after previewing... ....that is, unless ServerFilterByForm has been turned off...
3
by: Brian Keating EI9FXB | last post by:
Hello again, I've already placed a few posts on this topic. This time i've a simple application that exhibits my problem, I've placed sample solution 8k on my website should anyone be interested...
6
by: Dave Weber | last post by:
I'm in the process of writing an open-source plugin-enabled application. I know that you can define the API in several ways, and right now it is equipped as an Interface. The gist of the...
2
by: szilvaa | last post by:
Hi there, The .NET Framework developer's guide claims that one can filter managed exceptions in C++....
0
by: bq | last post by:
When I automate Word application in ASP .NET as below: Dim wordApp As Word.ApplicationClass .. .. wordApp = New Word.ApplicationClass() .. .. When the ASP.NET runs at the above line, it...
0
by: Domino | last post by:
Hi Trying to automate word. Works well on dev box using vs.net (c#). When I deploy it to production I get hit by this error "message filter indicated that the application is busy" Word is...
0
by: mtermoul | last post by:
Hi, I'm trying to write an ASP.NET page using VS.NET 2003, Office 2003, Win 2000 but I keep gettin this error: "The message filter indicated that the application is busy" this is the code....
1
by: Jean Stachler | last post by:
We have a VB app that is set off automatically when a file exists in a certain directory. The file contains a listing of part numbers which the program reads and than retrieves drawings which are in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.