Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access Denied Automating Word from DCOM Object
Message
De
19/07/2005 09:38:50
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01033653
Message ID:
01033819
Vues:
16
Hi Christof,

>>I'm trying to figure out what resource Word is trying to access that this user doesn't have permissions for.
>
>I'd use FILEMON and REGMON from htttp://www.sysinternals.com to monitor what happens while the CREATEOBJECT() line executes.
>
>Since you can start Word interactively, I'd assume that there's something in the profile that Word cannot access, maybe drive mappings... Can you logon as a different user on the server, and drop all drive mappings. Then launch Word using the "Run As..." option.

Thanks. I've found two additional things. First, there is also DCOMCNFG entry for "Microsoft Word Document". I added launch and access permissions for the user who my WWWC app is impersonating. This got me slightly further, with the next error being: "OLE IDispatch exception code 0 from Microsoft Word: Could not open macro storage"

I found some MS documents on this, which indicated I needed to start Word back up when logged in as that user and start VBA (Alt+F11), then shut Word back down. This apparently needs to be run once so that VBA has been initialized under that user's hive (which doesn't happen when Word is launched from a COM server). Once I did that and adjusted DCOM settings, things seem OK. FYI, here are some MS references:

http://support.microsoft.com/kb/288367/EN-US/
http://support.microsoft.com/kb/257757/

Thanks again,

-- Randy
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform