Bouncy Castle throwing TypeInitilization exception (Bug #154)


Added by pravin pimple almost 2 years ago. Updated almost 2 years ago.


Status:New Start date:04/16/2015
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:1.1.1

Description

Hellos,

Portable licensing is working fine on my machine. But when deployed to one of my Beta testers machine. The application is windows forms.
It is throwing error while loading the license. He has windows 7 machine too.

I have just signed both the portable.licensing 1.1 and Bouncy castle binaries nothing else done.

ERROR: System.TypeInitializationException: The type initializer for 'Org.BouncyCastle.Asn1.X9.X9ObjectIdentifiers' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
at Org.BouncyCastle.Asn1.DerObjectIdentifier..ctor(String identifier)
at Org.BouncyCastle.Asn1.X9.X9ObjectIdentifiers..cctor()
--- End of inner exception stack trace ---
at Portable.Licensing.License..ctor(XElement xmlData)
at __codefort (String )
at _
_codefort (Object , EventArgs )
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


History

Also available in: Atom PDF