PDA

View Full Version : commit CRM API and Outlook Synchronization


shailesh6233
January 7th, 2013, 11:02 AM
I am Getting this error while configuring CommitCRM CRM API


Unable to load DLL 'CmtDbQry.dll': The specified module could not be found.

Support Team
January 7th, 2013, 11:11 AM
Your application .exe file should be located under the following folder, that contains this DLL file:

\RangerMSP\ThirdParty\UserDev\

shailesh6233
January 7th, 2013, 11:27 AM
The CmtDbEng.dl file is there but CommitCRM.exe file is in Client folder. still I am getting error. Please help me to solve this error.

This is my code for CRM:

CommitCRM.Config config = new CommitCRM.Config();

config.AppName = "CommitCRM-Qutlook-Sync";
config.CommitDllFolder = "C:\\CommitCRM\\ThirdParty\\UserDev";
config.CommitDbFolder = "C:\\CommitCRM\\Db";
CommitCRM.Application.Initialize(config);

Support Team
January 7th, 2013, 11:43 AM
I referred to your application not to RangerMSP.exe that should indeed not be there. Anyway, if the dll is not found in this folder, and it should, then you need to copy it from the \RangerMSP\LastVer folder.

Side note: You cannot use this name for your application. It can be Outlook sync for RangerMSP but not something that starts with RangerMSP.

shailesh6233
January 7th, 2013, 12:09 PM
Sorry I did not get it, which file to copy where. can you explain it in simple way.

Support Team
January 7th, 2013, 01:00 PM
Sure - you reported above about the missing 'CmtDbQry.dll' file. Please copy it to the from the \RangerMSP\ThirdParty\UserDev\ and to the \RangerMSP\LastVer folder.

shailesh6233
January 7th, 2013, 01:40 PM
The File Is Already There

Support Team
January 7th, 2013, 01:52 PM
Great. It should have been there in the first place. You will need to check your program code and try to figure out why your program does not 'see' it. We recommend that you move your .exe file (of the program you write) into this folder as well and give it another try. In case it does not work it has to be something with the code itself. Check our API guides again and review all demos.

shailesh6233
January 8th, 2013, 06:57 AM
When I try to connect using this code

config.AppName = "QutlookSyncs";
config.CommitDllFolder = "C:\\CommitCRM\\ThirdParty\\UserDev";
config.CommitDbFolder = "C:\\CommitCRM\\Db";
CommitCRM.Application.Initialize(config);

and still I get this error

Unable to load DLL 'CmtDbQry.dll': The specified module could not be found.

I have referenced CommitLib.dll in my application.

I read your API and viewed demos still I am not getting what I am doing wrong

Support Team
January 8th, 2013, 07:36 AM
Please find some guiding questions that may help - in short - we suspect that there's a 32bit and 64bit conflict.

1. Which version of Visual Studio do you use?
2. Which operating system?
3. Whether are you using the C# sample provided or did you start a new project?
In case you started a new project - please make sure it compiles to 32 bit code unlike the default with some 64bit installations.

Hope this helps.