Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 236363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:20:21+00:00 2026-05-11T20:20:21+00:00

I have a user who has to use Microsoft Word 2007 to create and

  • 0

I have a user who has to use Microsoft Word 2007 to create and manipulate word documents in his ASP web application. I’m well aware of the ‘Considerations for server-side Automation of Office‘ KB article and the many third party components available to do this kind of thing, but they’ve gone a fair bit down this road already.

The problem he’s having is that the WINWORD.EXE process never terminates even though he calls Quit on the application object.

For example:

Set objWord = Server.CreateObject("Word.Application")
'' Do work
objWord.Quit
Set objWord = Nothing

As you would expect, his server ends up littered with orphaned WINWORD.EXE
processes requiring manual intervention to terminate.

Is there a way to terminate these WINWORD.EXE processes explicitly in the script?

Update:

I’ve made some progress with this and I think I have a handle on what the problem is. When an Office application runs for the first time under a new Windows account it asks for your name and initials. Now because there is no visible GUI, there is no-one there to push all the right buttons. I’ve tried starting WINWORD.EXE as the website anonymous account identity using RUNAS, but there’s some permission issue that’s preventing Word or Office performing some other kind of initial setup routine it wants to do.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:20:21+00:00Added an answer on May 11, 2026 at 8:20 pm

    There are two things I can think of:

    MyWorkBook.Saved has not been set to true. As a result the Quit call results in WinWord displaying a “Do you wish to save” dialog. On a server. Under a session with no desktop. Needless to say Word never manages to quit as it is waiting for the user.

    Your user’s script is not always making it to the Quit line. This is a frequent and perhaps biggest reasons against using the Office Automation, as you really need multiple layers of exception handling and finally statements (which isn’t VBScript or the ASP classic engines strong point) to ensure that the instance is properly cleaned up.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of the user's images displayed, (who has already allowed access
I have asp:DropDownList control which i want to display data to user who don't
I have a Unity3D application who needs registration. The user needs to register in
I have a client who has a young target audience and needs his site
I have been trying to create a simple application that will let the user
I have the user object who has manytomany relation with Group entity. But i
I have a user who randomly gets a Script Error box (shown below) which
My goal for now is to have a user search for other users who
I have problem with c# script who change user AD password, when try change
A question to maybe some who have worked extensively with WinUSB APIs or user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.