>>>I have a word automation program that has been working for years. I just found out that it crashes when running under XP. As soon as I try to load Word with this line:
>>>
>>>oWord = CREATEOBJECT("Word.Application")
>>>
>>>I get the error: ClassFactory cannot supply requested class.
>>>
>>>What do I need to change and are there any other "gotchas"?
>>>TIA
>>
>>John,
>>Is it a DELL computer where Office preinstalled? Anyway check security for office members in DCOM (dcomcnfg) first.
>>Cetin
>
>Cetin,
>Yes, it is a Dell with Office Preinstalled. Now what? I ran dcomcnfg but I have no idea what to do with it.
Off the top of my head:
Dblclick Component services, then Computers. You'd see myComputer. Right click, properties then check COM security. It might be all you need to set to allow access for SYSTEM. If that doesn't do by itself open DCOM node, there find MS word application (might be document only - try). Right click and check properties\Security, Identity tabs.
For a more through what to set and where check for messages with keywords "preinstalled,access denied,createobject" - should be following DEVCON 2002.
Cetin