have a VB.NET application which uses MS Word to dynamically fill out a
document and print it as a cover sheet. The application has run without a
hitch for months until now. Suddenly, the application now fails at this line
"wd = New Word.ApplicationClass()", with this error "Access is denied." Out
of curiosity, I tried to create a Word object using VBScript which yielded
the same error. I also tried to create other registered objects such as
Paint and MPlayer using VBScript, all of which yielded the same error.
What could be causing this?

Bryan Thomas and Ken Roberts

Software Engineers

Re: Problem creating registered objects like Word by Dmitriy

Dmitriy
Sat Dec 20 03:58:14 CST 2003

Hi Bryan and Ken,

Run dcomcnfg.exe and ensure the user under which your applications run has
necessary permissions to access MS Word COM automation object.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Ken Roberts" <kenneth.roberts@pearson.com> wrote in message
news:%23bCKWXaxDHA.1740@TK2MSFTNGP09.phx.gbl...
> have a VB.NET application which uses MS Word to dynamically fill out a
> document and print it as a cover sheet. The application has run without a
> hitch for months until now. Suddenly, the application now fails at this
line
> "wd = New Word.ApplicationClass()", with this error "Access is denied."
Out
> of curiosity, I tried to create a Word object using VBScript which yielded
> the same error. I also tried to create other registered objects such as
> Paint and MPlayer using VBScript, all of which yielded the same error.
> What could be causing this?
>
> Bryan Thomas and Ken Roberts
>
> Software Engineers
>
>
>