473,471 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access denied when instantiating word 2000

Hi,

I am using MS Word inside C# application. The application is using
impersonation as Administrator. The application works fine for a few days
then suddenly I started to get "access is denied" message everytime I
instantiate instantiate MS word like "oWordApp = new
Word.ApplicationClass();" Not just this application, any application uses
word automation now don't work any more.

There's nothing I can do to make the error go away. But if I remove and
reinstall Office 2000 then the application starts to work again, for a few
more days before it starts to generate this error again. I see no instance
of winword in task manager hanging around.

I have no clue what causes this problem and no idea why it goes away when I
reinstall office 2000.

Thank you for your suggestions.


Nov 19 '05 #1
1 1254
Hi Jack,

Do you use
System.Runtime.InteropServices.Marshal.ReleaseComO bject
(oWordApp) to release the object after using it?

Anyway, it's not a good idea to use automation on server.

HTH

Elton Wang
el********@hotmail.com
-----Original Message-----
Hi,

I am using MS Word inside C# application. The application is usingimpersonation as Administrator. The application works fine for a few daysthen suddenly I started to get "access is denied" message everytime Iinstantiate instantiate MS word like "oWordApp = new
Word.ApplicationClass();" Not just this application, any application usesword automation now don't work any more.

There's nothing I can do to make the error go away. But if I remove andreinstall Office 2000 then the application starts to work again, for a fewmore days before it starts to generate this error again. I see no instanceof winword in task manager hanging around.

I have no clue what causes this problem and no idea why it goes away when Ireinstall office 2000.

Thank you for your suggestions.


.

Nov 19 '05 #2

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

Similar topics

4
by: Fabian von Romberg | last post by:
Hi, I have installed Sql Reporting Services on 2 machines, one is WIN 2000 PRO and the other one is WIN 2000 ADV. SERVER. When I try to access a report using the webbrowser, I get the following...
1
by: Lyn Duong | last post by:
Hi, I have tried creating a linked server in microsoft sql 2000 to a db2 for vm database. I use a db2 v8 admin client, configure it via client configuration setup and then in Microsoft SQL...
3
by: Michael | last post by:
I am using MS Access 2000 on an Windows XP machine and am trying to use the Upsizing Tool in Access 2000 to upsize an Access 2000 database to use with Microsoft SQL Server 7.0. My MS Access...
0
by: Michael Meckelein | last post by:
Hi all, some strange things are going on. I have a c# project to automate word written under VS.NET with Office XP PIAs. It is a web application project using ASP.NET, programming language is...
3
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
3
by: Kagamoto | last post by:
Hello everybody! I'm developing an ASP.NET (v1.1) web application which includes a reference to the "Microsoft Word 11.0 Object Library". When I try the following code: .... .......
6
by: royan | last post by:
Help please! I have the same problem which this post ...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.