on 11-05-2009 2:52 PM
Hi,
I am having a little trouble and I hope someone can help. I have created an add-on that works fine on 32bit windows Server 2003. Our customer has upgraded to 64 bit Windows 2008. I read that in order for the add-ons to work you must compile them by setting the CPU option to x86. I did this but my problem seems to be with the installation. I use the B1DE to create my installation wizards, but while the add-on is installing I get the error:
Error: An attempt was made to load a program with an incorrect format (Exception from HRESULT: 0x8007000B)
Am I supposed to do something extra with the B1DE?
thanks
Hi Costas,
I'm only familiar with the most basic installer from the B1DE (called 'SAP B1 AddonInstaller .NET wizard'). This installer is created as a VB.NET windows app with a target CPU type of 'Any CPU'. To use it on a 64 bit machine, you need to go in to the project properties and set the CPU type to X86 (ie same as your add-on project) and rebuild the installer project. After doing this you need to recreate the ard file. You can do this by going to the AddOnRegDataGenFile folder which will have been created within the folder for your installer project and double-clicking the AddOnRegDataGenFile.bat file.
Kind Regards,
Owen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, thanks for the replies. I am still getting the error. I'll explain my steps so maybe someone can find the mistake.
I debug and rebuild my program with x86 CPU
I run the "SAP B1 AddonInstaller .NET wizard" from the B1DE.
I then debug and rebuild it with x86 CPU
I go to the AddOnRegDataGenFile folder and double click the AddOnRegDataGenFile.bat file
Is this all correct?
Hi,
I have just created a VM running on 64 bits and tested B1DE on it.
Everything seems to work fine.
The only points to take care are:
1. In addon project -> Properties -> Build => Set Target CPU = x86 (don't forget to set it specialy for Release configuration) and then recompile de release version.
2. In addon installer project set also the same way Target CPU = x86, then recompile the project and run the AddOnRegDataGen.bat in order to regenerate the ard file.
After that the addon is correctly installed and runs without any problem.
Regards
Trinidad.
Hello,
SAP Business One SDK does not support 64-bit development. Both UI and DI API, DLL files are only meant for 32 bit - and will not work on 64 bit.
Regards,
Rahul Jain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.