Sage 50 could not be opened becausethe company data location .... could not be accessed

Hi,

I have a problem under Windows 8 and Sage 50(2013).

When I made a connection to PT from SDK COM objects I had the following error:

Sage 50 could not be opened becausethe company data location .... could not be accessed. If this path is correct and can be accessed outside of Sage 50, try repairing or reinstall Sage 50 to correct the problem.

At the same time, I get an exception:

Access denied. (Exception HRESULT: 0x80070005(E_ACCESSDENIED))


This error, only happens if I open Sage 50 from the SDK COM objects. I tried to open Sages 50 from its user interface and all went fine, no errors appears, even I opened a company and I did some task without problems

Somebody knows what is happening..??

Thanks