Compile Errors with VS2010 & V12.3.52 in Release build

This forum is for programmers who have questions about the source code.
Post Reply
msgill5
Posts: 5
Joined: Thu Jun 28, 2007 10:10 pm

Compile Errors with VS2010 & V12.3.52 in Release build

Post by msgill5 » Fri Jul 04, 2014 11:18 pm

Happy 4th !!!

I am using XP SP3 (x32), VS2012 Ultimate and trying to compile OD ver 12.3.52. The debug build compiles fine, but the release version gives the following errors (compiling both in x86 mode):

Error 22 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found xODR
Error 23 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found OpenDentalServer
Error 24 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found xCrudGenerator
Error 25 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found OpenDentHL7
Error 26 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found WebCamOD
Error 27 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found xCentralManager
Error 28 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found WebForms
Error 29 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found SparksToothChart
Error 30 Metadata file 'C:\OD_SRC_12_3_52\WebForms\bin\Release\WebForms.dll' could not be found WebHostSynch
Error 31 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found WebHostSynch
Error 32 Metadata file 'C:\OD_SRC_12_3_52\OpenDentHL7\bin\Release\OpenDentHL7.exe' could not be found ServiceManager
Error 33 Metadata file 'C:\OD_SRC_12_3_52\SparksToothChart\bin\Release\SparksToothChart.dll' could not be found TestToothChart
Error 34 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found TestToothChart
Error 35 Metadata file 'C:\OD_SRC_12_3_52\SparksToothChart\bin\Release\SparksToothChart.dll' could not be found OpenDental
Error 36 Metadata file 'C:\OD_SRC_12_3_52\OpenDentalWpf\bin\Release\OpenDentalWpf.dll' could not be found OpenDental
Error 37 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found OpenDental
Error 38 Metadata file 'C:\OD_SRC_12_3_52\ODR\bin\Release\ODR.dll' could not be found OpenDental
Error 39 Metadata file 'C:\OD_SRC_12_3_52\OpenDental\bin\Release\OpenDental.exe' could not be found TestCanada
Error 40 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found TestCanada
Error 43 An attempt was made to load an assembly with an incorrect format: C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.EnterpriseServices.dll. C:\OD_SRC_12_3_52\OpenDentBusiness\SGEN OpenDentBusiness
Error 48 Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found C:\OD_SRC_12_3_52\OpenDentalWpf\CSC OpenDentalWpf

So they seem to be 3 types of errors:
1) Bunch of OpenDentBusiness.dll and SparksToothChart.dll not found
2) (SGEN) load an assembly with an incorrect format: C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.EnterpriseServices.dll.
3) (CSC)Metadata file 'C:\OD_SRC_12_3_52\OpenDentBusiness\bin\Release\OpenDentBusiness.dll' could not be found

I get the same errors when compiling the previous OD ver (12.2)

Need help. Please provide your guidance.

Thanks.

User avatar
jsalmon
Posts: 1553
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: Compile Errors with VS2010 & V12.3.52 in Release build

Post by jsalmon » Sat Jul 05, 2014 12:55 pm

Error: Mixed mode assembly section on:
http://www.opendental.com/manual/sourcecode.html

The plethora of OpenDentBusiness.dll errors are because OpenDentBusiness never compiled correctly thus the other projects that are referencing it cannot find its compiled dll.
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

msgill5
Posts: 5
Joined: Thu Jun 28, 2007 10:10 pm

Re: Compile Errors with VS2010 & V12.3.52 in Release build

Post by msgill5 » Sun Jul 06, 2014 12:27 am

Thanks for the reply Jason.

I tried the fix suggested in
Error: Mixed mode assembly section on: http://www.opendental.com/manual/sourcecode.html

It did not fix my error, so I had to turn "Generate serialization assembly" to "Off" in the OpenDental Build. Then the Release mode compiles fine. Perhaps your suggestion did not work for me as I was using VS2010 in 32bit Windows XP. I had to use VS2010 and compile OD 12.3.52 as we have a couple of 32bit XP machines in the office that we can't upgrade to Windows7/8 rightaway.

Reading up on OD website, it appears that I can't go higher than 12.3.52 with Windows XP. Is this true? or can I compile higher OD revs with VS2010.

Thanks for your help and you guys do great work.

User avatar
jsalmon
Posts: 1553
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: Compile Errors with VS2010 & V12.3.52 in Release build

Post by jsalmon » Sun Jul 06, 2014 1:09 pm

jsalmon wrote:You could download 2012 express? :| ?did I just say that out loud?

I've read about people hacking their way through 2012 solutions to connect to them in 2010. Open Dental has a lot of web service action going on so I don't know how bloody the battle would be to "down-vert" the solution to 2010. I quickly Googled it and stackoverflow makes it sound like a warm tropical breeze:
http://stackoverflow.com/questions/1540 ... en-in-2010
viewtopic.php?f=3&t=5301&p=22973&hilit= ... low#p22973
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

Post Reply