version 7.8 and above exception

This forum is for programmers who have questions about the source code.
Post Reply
teethdood
Posts: 267
Joined: Sun Jul 29, 2007 12:39 am
Location: Visalia, CA
Contact:

version 7.8 and above exception

Post by teethdood » Fri Mar 11, 2011 3:26 pm

v7.8+
At the Choose Database screen, I get an exception:
The type initializer for 'System.Transactions.Diagnostics.DiagnosticsTrace' threw an exception
Last edited by teethdood on Thu May 05, 2011 8:26 am, edited 1 time in total.
Philip H. Doan, DDS
http://www.kaweahdental.com/

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

Re: 7.8.5 exception

Post by jordansparks » Fri Mar 11, 2011 5:11 pm

Did you compile?
Jordan Sparks, DMD
http://www.opendental.com

teethdood
Posts: 267
Joined: Sun Jul 29, 2007 12:39 am
Location: Visalia, CA
Contact:

Re: 7.8.5 exception

Post by teethdood » Wed May 04, 2011 8:52 pm

I thought I had solved the problem and forgot all about it (switched OS to use windows 7 instead), but it still persists. The exception only happens while running compiled OD in windows server 2008. The same version/build runs fine in other computers (windows 7).
windows server 2008 R2, MySQL5.0/MySQL5.5, all builds beginning with version 7.8 on up.
Any pointers? Thanks Jordan/team.
Philip H. Doan, DDS
http://www.kaweahdental.com/

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

Re: version 7.8 and above exception

Post by jordansparks » Wed May 11, 2011 4:13 am

Just turn off trace from your project properties page.
Jordan Sparks, DMD
http://www.opendental.com

teethdood
Posts: 267
Joined: Sun Jul 29, 2007 12:39 am
Location: Visalia, CA
Contact:

Re: version 7.8 and above exception

Post by teethdood » Thu May 19, 2011 6:37 pm

For the life of me I can't find how to turn off trace. The only thing resembling trace is the checkbox "Define TRACE constant" that is found in the properties of each individual project/Build tab, which doesn't make a difference I'm afraid. Am I overlooking something here? VS2010. Thanks
Philip H. Doan, DDS
http://www.kaweahdental.com/

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

Re: version 7.8 and above exception

Post by jordansparks » Sat May 21, 2011 4:56 am

Yes, that was the trace I was talking about. Did you remove it from all projects?

We've never seen that issue. This is one of those times when you just have to figure it out on your own. Google it. Fiddle with it. That's what we do. You might look in the Debug menu, Exceptions. Under CLR Exceptions, there is a section for System.Transactions. The first column is unchecked for me, and the second column is checked.

Figure out where the exception is being thrown and alter the code. There are few, if any, places where we use trace, so it should be easy to purge the code of it.

Look in the references for each project, and make sure System.Transactions is not missing with a yellow exclamation point.

My worst such bug took a month of solid research and fiddling to finally track down the cause. Not to discourage you or anything.
Jordan Sparks, DMD
http://www.opendental.com

alhalwachi
Posts: 74
Joined: Fri Apr 02, 2010 2:26 pm

Re: version 7.8 and above exception

Post by alhalwachi » Sun Aug 21, 2011 1:36 pm

I got this error on Windows 2008 R2, fixed it by installing .Net Framework 4.0, you may google for a standalone exe download of and install it whenever required.

Post Reply