CrystalDecisions.Shared.SharedUtils threw an exception
So, I was having an issue similar to the thread at The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exc
Here is what i am doing currently:
DSN connection to a source via
Dim conn As New OdbcConnection("DSN=lalConnect")
input = getfile() While (Not (input.Contains(".rpt"))) MessageBox.Show(input & " is NOT a .rpt file") input = getfile() End While ReportViewer.CrystalReportViewer1.ReportSource = input.ToString
I set the compiler to be for any CPU type (x86 || x64)
My error throws in the last line of the above code and would show message "An Error Occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exceptiion."
I wasnt quite sure as to why this was happening, and as a side question, i wasnt sure how to connect my DSN connection to the report so it can properly pull information. could be a reason why it is throwing this error..?
P.S.- If you need more information, i can post it.
Edited by: fallenreaper on Feb 14, 2011 4:38 PM