Link to home
Start Free TrialLog in
Avatar of chriscboy
chriscboyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

OLE error code 0x80004005: Unspecified error, after upgrading DLLs to VFP9.

I recently upgrade our company version of Microsoft Office to 2010, as part of this process we also upgraded our custom VFP7 DLLs to use VFP9 as well, so that they would work with Office 2010. The DLLs do quite a bit of Word Automation, and are called from a VFP7 app.

When we rolled this out users have reported the "OLE error code 0x80004005: Unspecified error" error occurring. Upon further investigation I found the line was causing a problem when I was instantiating a VFP DLL e.g. o = CreateObject("Mydll.myclass")

I have done a bit of research already and the error code is something to do with permissions. I have tried re-registering the DLLs and the problem still occurred. Oddly enough if I run the VFP app using "Run As Administrator" it works fine and the automation works!

The only change is that has been made is that the DLLs have been re-compilied in VFP9.

Can anyone provide some suggestions as to what I need to do to get the app working without having to run as administrator? All the workstations are Windows 7.
SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chriscboy

ASKER

Hi,

I have done this and found the following :User generated image
I can see that there is a access denied accessing emsofficeclassr1.dll.

However the dll installed is called emsofficeclass.dll , I don't know where the r1 has come from.

I am not sure what to do next ?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great solution!
Points given for pointing me in the right direction.