Parameter Incorrect error compiling OpenDental7.5

This forum is for programmers who have questions about the source code.
Post Reply
Dockheas23
Posts: 4
Joined: Sun Dec 05, 2010 6:20 am

Parameter Incorrect error compiling OpenDental7.5

Post by Dockheas23 » Sun Dec 05, 2010 7:09 am

Hello,

I'm porting a custom plugin from 7.1 to 7.5, and have been trying to compile 7.5 from svn to provide the correct references for the plugin. I originally got the ResGen error, but fixed that using the Corflags solution. Ever since, most of the containing projects compile ok, but the OpenDental one fails with two errors of the following kind:

Error 1 Could not load file or assembly 'AxInterop.AcroPDFLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) Line 240, position 5. Y:\OpenDental\Main Modules\ContrAccount.resx 240 5 OpenDental

In both cases the line numbers correspond to a closing </data> tag for a blob in the ContrAccount.resx and ContrTreat.resx files.

Environment:
- Windows 7 Ultimate 64Bit
- Visual Studio 2010
- I didn't mess with any of the configuration files, meaning all projects are set to build as x86, and mostly against .NET 3.5 (though the WebForms and WebHostSynch projects are for .NET 4)

What I've tried so far:
- Reinstall .NET Framework, as recommended on a couple of blogs.
- Reinstall Visual Studio
- Change the reference in question: This was interesting because the error remained exactly, just with 'CDT' instead of 'AxInterop.AcroPDFLib'. This leads me to believe that it's not the reference itself that is the problem.

Any help would be greatly appreciated. Thank you.

George Boyle

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Parameter Incorrect error compiling OpenDental7.5

Post by jordansparks » Sun Dec 05, 2010 6:49 pm

Looks like you are missing a dll for Acrobat. Do you have Acrobat installed on your computer?
Jordan Sparks, DMD
http://www.opendental.com

Dockheas23
Posts: 4
Joined: Sun Dec 05, 2010 6:20 am

Re: Parameter Incorrect error compiling OpenDental7.5

Post by Dockheas23 » Mon Dec 06, 2010 4:26 am

I have Adobe Reader installed (does that count?!), but the 'AxInterop.AcroPDFLib' dll is there anyway in the Required DLLs folder, and the reference to it is correct. Is that not enough?

Thanks,
George

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Parameter Incorrect error compiling OpenDental7.5

Post by jordansparks » Tue Dec 07, 2010 4:35 pm

Are you sure you have it set to build x86. You said you didn't mess with the configuration, but I know that you do indeed have to mess with the configuration to get it to build for x86. It seems to forget that setting with each minor version.
Jordan Sparks, DMD
http://www.opendental.com

Dockheas23
Posts: 4
Joined: Sun Dec 05, 2010 6:20 am

Re: Parameter Incorrect error compiling OpenDental7.5

Post by Dockheas23 » Thu Dec 09, 2010 4:19 pm

Yes, I checked and all projects are set to build x86 in the configuration manager.

I'm all out of ideas! I'll try VS2008 and let you know how it goes.

Dockheas23
Posts: 4
Joined: Sun Dec 05, 2010 6:20 am

Re: Parameter Incorrect error compiling OpenDental7.5

Post by Dockheas23 » Thu Dec 09, 2010 6:00 pm

Just tried with VS2008, and it worked without much difficulty...the mind boggles!
Thanks for your help.

User avatar
wjstarck
Posts: 936
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Re: Parameter Incorrect error compiling OpenDental7.5

Post by wjstarck » Fri Dec 10, 2010 6:34 am

I got this error too after downloading the 7.5 and trying to compile in VS2010.

I noticed that all the Acrobat references were pointing to obj folder so I deleted the following references in the OpenDental project:

Interop.Acrobat
Interop.AcroPDFLib
Interop.AFORMAUTLib

Then re-added them pointing to the files in the RequiredDlls folder. And the error message went away.
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Parameter Incorrect error compiling OpenDental7.5

Post by jordansparks » Fri Dec 10, 2010 9:03 am

Thanks for pointing that out. It's been fixed in 7.5 and the head.
Jordan Sparks, DMD
http://www.opendental.com

Post Reply