This application is not allowed to log into this QuickBooks company data file automatically

Viewed 1770

I want to create native QuickBooks connector. While connecting with QuickBooks Company file I am getting following error.

"This application is not allowed to log into this QuickBooks company data file automatically. The QuickBooks administrator can grant permission for an automatic login through the Integrated Application preferences."

Error

This is my Code:

QBSessionManagerClass sMgr = new QBSessionManagerClass();

try
{
    sMgr.BeginSession(fileName, ENOpenMode.omMultiUser);
}
catch
{
    sMgr.CloseConnection();
    throw;
}

I am using QuickBooks Desktop Enterprise Solutions 17.0 and QBXML SDK 13.0 Installer.

Does anyone have any ideas as to what the issue may be? Thanks in advance.

1 Answers
Related