I am unable to add the reference of xmogrt.dll in my content delivery web application .it throws the error –
“A Reference to xmogrt.dll could not be added. No Type libraries were found in the component”.
As per my knowledge, if any dll is unmanaged and is not COM (does not have a Type Library). We can copy the dll manually into the execution directory. So if I do so , I can able to build my application but it throws below error in the below code –
ItemSchemaCriteria isnews = new ItemSchemaCriteria(137);
“An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B”
This error creates a doubt in my head that I am not using 64 bit dll in the application. For this I removed and again added the dll from my 64 bit Tridion installation. Here my questions are below –
(1) Is it not possible to add reference of xmogrt.dll from visual studio and to copy this dll in the bin directory is fine?
(2) How can I verify the bit of xmogrt.dll? For this I tried “pedeconstructor_0.1_amd64” tool but no luck.
Please also guide me to troubleshoot this error.