Parameter Incorrect error compiling OpenDental7.5
Posted: 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
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