Compilation errors with the sources from trunk

This forum is for programmers who have questions about the source code.
Post Reply
Bogdan
Posts: 8
Joined: Thu Jun 27, 2013 1:06 pm
Location: Le Chesnay, France
Contact:

Compilation errors with the sources from trunk

Post by Bogdan » Sat Jul 06, 2013 6:09 am

Hi
After updating sources from trunk, I get an error at compilation about missing enum fields (I am using Visua Studio 2012)

ged' hides inherited member 'System.Windows.Forms.UserControl.TextChanged'. Use the new keyword if hiding was intended.
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\User Controls\TextBoxWiki.cs(31,27,31,43): warning CS0114: 'OpenDental.TextBoxWiki.ContextMenuStrip' hides inherited member 'System.Windows.Forms.Control.ContextMenuStrip'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(24,102,24,124): error CS0117: 'OpenDentBusiness.PrefName' does not contain a definition for 'EmailInboxComputerName'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(33,102,33,124): error CS0117: 'OpenDentBusiness.PrefName' does not contain a definition for 'EmailInboxComputerName'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(46,73,46,95): error CS0117: 'OpenDentBusiness.PrefName' does not contain a definition for 'EmailInboxComputerName'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(52,32,52,54): error CS0117: 'OpenDentBusiness.PrefName' does not contain a definition for 'EmailInboxComputerName'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(110,134,110,149): error CS0117: 'OpenDentBusiness.EmailSentOrReceived' does not contain a definition for 'WebMailReceived'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(152,53,152,57): error CS0117: 'OpenDentBusiness.EmailSentOrReceived' does not contain a definition for 'Read'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(155,61,155,76): error CS0117: 'OpenDentBusiness.EmailSentOrReceived' does not contain a definition for 'WebMailReceived'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(156,53,156,68): error CS0117: 'OpenDentBusiness.EmailSentOrReceived' does not contain a definition for 'WebMailRecdRead'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(162,56,162,60): error CS0117: 'OpenDentBusiness.EmailSentOrReceived' does not contain a definition for 'Read'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(166,61,166,76): error CS0117: 'OpenDentBusiness.EmailSentOrReceived' does not contain a definition for 'WebMailRecdRead'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailInbox.cs(167,53,167,68): error CS0117: 'OpenDentBusiness.EmailSentOrReceived' does not contain a definition for 'WebMailReceived'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailAddresses.cs(33,57,33,79): error CS0117: 'OpenDentBusiness.PrefName' does not contain a definition for 'EmailInboxComputerName'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailAddresses.cs(34,55,34,78): error CS0117: 'OpenDentBusiness.PrefName' does not contain a definition for 'EmailInboxCheckInterval'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailAddresses.cs(129,33,129,55): error CS0117: 'OpenDentBusiness.PrefName' does not contain a definition for 'EmailInboxComputerName'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormEmailAddresses.cs(130,30,130,53): error CS0117: 'OpenDentBusiness.PrefName' does not contain a definition for 'EmailInboxCheckInterval'
1>C:\Users\bogdan\Documents\Loredana\head\OpenDental\Forms\FormWiki.cs(405,21,405,23): warning CS0168: The variable 'ex' is declared but never used

regards
Bogdan
Bogdan Cristea

Bogdan
Posts: 8
Joined: Thu Jun 27, 2013 1:06 pm
Location: Le Chesnay, France
Contact:

Re: Compilation errors with the sources from trunk

Post by Bogdan » Sat Jul 06, 2013 10:30 am

I have been able to compile OD with no errors (previously I have opened the project file found in OpenDental folder instead of the solution file). However, I get frequently exceptions while running OD:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Exception: EmailInboxComputerName is an invalid pref name.
at OpenDentBusiness.PrefC.GetString(PrefName prefName) in c:\Users\bogdan\Documents\Loredana\head\OpenDentBusiness\Cache\PrefC.cs:line 87
at OpenDental.FormOpenDental.timerEmailInboxCheck_Tick(Object sender, EventArgs e) in c:\Users\bogdan\Documents\Loredana\head\OpenDental\Main Modules\FormOpenDental.cs:line 3651
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18046 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
OpenDental
Assembly Version: 13.3.0.0
Win32 Version: 13.3.0.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/OpenDental.exe
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18045 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18046 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18022 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
CodeBase
Assembly Version: 7.1.0.0
Win32 Version: 7.1.0.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/CodeBase.DLL
----------------------------------------
OpenDentBusiness
Assembly Version: 13.3.0.0
Win32 Version: 13.3.0.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/OpenDentBusiness.DLL
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
NHunspell
Assembly Version: 0.9.6.0
Win32 Version: 0.9.6.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/NHunspell.DLL
----------------------------------------
SparksToothChart
Assembly Version: 4.7.1.0
Win32 Version: 4.7.1.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/SparksToothChart.DLL
----------------------------------------
Microsoft.DirectX.Direct3D
Assembly Version: 1.0.2902.0
Win32 Version: 9.05.132.0000
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/Microsoft.DirectX.Direct3D.DLL
----------------------------------------
xImageDeviceManager
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/xImageDeviceManager.DLL
----------------------------------------
SigPlusNET
Assembly Version: 1.1.4050.24928
Win32 Version:
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/SigPlusNET.DLL
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.6871
Win32 Version: 9.00.30729.6871
CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6871_none_50944e7cbcb706e5/msvcm90.dll
----------------------------------------
System.Web.Services
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18046 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
OpenDental.XmlSerializers
Assembly Version: 13.3.0.0
Win32 Version: 13.3.0.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/OpenDental.XmlSerializers.DLL
----------------------------------------
AxInterop.AcroPDFLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/AxInterop.AcroPDFLib.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18046 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
CDT
Assembly Version: 12.3.20.0
Win32 Version: 12.3.20.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/CDT.DLL
----------------------------------------
MySql.Data
Assembly Version: 6.2.4.0
Win32 Version: 6.2.4.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/MySql.Data.DLL
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
Oracle.DataAccess
Assembly Version: 2.112.2.0
Win32 Version: 2.112.2.0
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/Oracle.DataAccess.DLL
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
Ionic.Zip
Assembly Version: 1.9.1.4
Win32 Version: 1.9.1.4
CodeBase: file:///C:/Users/bogdan/Documents/Loredana/head/OpenDental/bin/Release/Ionic.Zip.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Bogdan Cristea

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

Re: Compilation errors with the sources from trunk

Post by jsalmon » Sat Jul 06, 2013 11:29 pm

From your exception text I see that you are using the head. We are constantly working in the head and changing things around when adding new features to Open Dental. You most likely updated the repository and we added a preference that you now do not have in your database. Because you are using the head, there is no way to "upgrade" your database. You either have to start over with a blank db or manually run the new SQL commands from our convertdatabase class.

This is why this page says to not use the head with live data:
http://opendental.com/manual/sourcecode.html
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

Bogdan
Posts: 8
Joined: Thu Jun 27, 2013 1:06 pm
Location: Le Chesnay, France
Contact:

Re: Compilation errors with the sources from trunk

Post by Bogdan » Sat Jul 06, 2013 11:43 pm

I have started with a blank db, as it is created by the installer, when I start OD it updates the db but I still get the error message. I will try with the second approach you propose

thanks
Bogddan
Bogdan Cristea

Post Reply