E_ACCESSDENIED

Trying to execute the code below resulted in an E_ACCESSDENIED error from COM+. Running the same code while hosting the component in VB6 IDE worked fine.

After some debugging it became clear that the problem was related to a misconfiguration if DCOM. I fixed it by granting “Everyone” access under dcomcnfg / My Computer / Propertied / COM Security

This entry was posted in Work. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *