morgenweck
Joined: 09 Jun 2010 Posts: 21
|
Posted: Tue Jan 18, 2011 4:52 pm Post subject: IsRichTextFormat Throws FileLoadException |
|
|
I'm upgrading from version 3 to version 4 and also changing from Framework 2.0 to 4.0. When I set a cell to IsRichTextFormat = True it throws an error saying:
Mixed mode assembly is built against version v2.0.50727 of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
As soon as I put IsRichTextFormat to false I can load the Object into the tree without any FileLoadExceptions.
I can send screenshot if necessary.
Thanks
Additional information:
System.IO.FileLoadException occurred
Message=Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
Source=Infralution.Controls.VirtualTree
StackTrace:
at Infralution.Controls.VirtualTree.CellWidget.PaintRichText(Graphics graphics, Rectangle bounds)
at Infralution.Controls.VirtualTree.CellWidget.PaintText(Graphics graphics, Rectangle bounds, Style style, String text, Boolean printing)
at Infralution.Controls.VirtualTree.CellWidget.PaintForeground(Graphics graphics, Style style, Boolean printing)
at Infralution.Controls.VirtualTree.CellWidget.OnPaint(Graphics graphics)
at Infralution.Controls.Widget.OnPaint(Graphics graphics)
at Infralution.Controls.VirtualTree.RowWidget.OnPaint(Graphics graphics)
at Infralution.Controls.Widget.OnPaint(Graphics graphics)
at Infralution.Controls.VirtualTree.PanelWidget.OnPaint(Graphics graphics)
at Infralution.Controls.WidgetControl.PaintWidgets(Graphics graphics, Rectangle clipRectangle)
at Infralution.Controls.WidgetControl.OnPaint(PaintEventArgs e)
at Infralution.Controls.VirtualTree.VirtualTree.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Infralution.Controls.BorderedControl.WndProc(Message& m)
at Infralution.Controls.VirtualTree.VirtualTree.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Program.Main() in C:\Projects\AdminDatabase\DataCenterCore\Program.vb:line 20
InnerException: |
|