cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

So, I was having an issue similar to the thread at

Here is what i am doing currently:

DSN connection to a source via

Dim conn As New OdbcConnection("DSN=lalConnect")

and then


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..?

Thanks everyone.

P.S.- If you need more information, i can post it.

Edited by: fallenreaper on Feb 14, 2011 4:38 PM

0 Likes
View Entire Topic
Former Member
0 Likes

Guys,

you must install the correct crystal report runtime (32 or 64) and this error will be resolved.

Former Member
0 Likes

I wasnt sure about that Georgino - AUB, as I have made and run Crystal reports previously and it didnt affect me, but i am downloading the most current patch just in case.