Problem creating registered objects like Word

  • Thread starter Thread starter Ken Roberts
  • Start date Start date
K

Ken Roberts

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
 
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.
 
Back
Top