468,321 Members | 1,834 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,321 developers. It's quick & easy.

Getting a type initializer error from CrystalReportViewer control in upgraded VS .NET app

Rod
I've got Crystal Reports XI Release 2, for development with Visual Studio
..NET 2005. I've taken a VS .NET 2003 WinForms application that I wrote in
C#, and upgraded it to VS .NET 2005. It has just one WinForm, and one
CrystalReportViewer control on it. After letting the upgrade wizard do its,
I attempted to run the application, however it died on the line in the
InitializeComponent() method where it was attempting to create a new
CrystalDecisions.Windows.Forms.CrystalReportViewer control and assign it to
the CRV on the form. I got the following error:

System.TypeInitializationException was unhandled
Message="The type initializer for
'CrystalDecisions.ReportSource.ReportSourceFactory ' threw an exception."
Source="CrystalDecisions.Windows.Forms"
TypeName="CrystalDecisions.ReportSource.ReportSour ceFactory"
StackTrace:
at CrystalDecisions.Windows.Forms.CrystalReportViewer ..ctor()
at AllClientsForISR.Form1.InitializeComponent() in D:\AMCI
Apps\AllClientsForISR\Form1.cs:line 75
at AllClientsForISR.Form1..ctor() in D:\AMCI
Apps\AllClientsForISR\Form1.cs:line 42
at AllClientsForISR.Form1.Main() in D:\AMCI
Apps\AllClientsForISR\Form1.cs:line 170
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

The inner exception is:
The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an
exception.
" at CrystalDecisions.Shared.SharedUtils.GetFullTypeNam e(Type type)\r\n
at CrystalDecisions.ReportSource.ReportSourceFactory. .cctor()"
Oct 4 '06 #1
0 3983

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Cuperman | last post: by
2 posts views Thread by suicidaltendencies | last post: by
reply views Thread by Richard Thayne | last post: by
1 post views Thread by Richard Thayne | last post: by
reply views Thread by Tumurbaatar S. | last post: by
reply views Thread by Rod | last post: by
reply views Thread by douglas | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.