0

I get a VerificationException after branching a solution. My folderstructure is ordered like this:

 - Dev
 - -- Main
 - Releases
 - -- v1.x.x
 - -- ...

If I build & start the solution in the Dev/Main branch everything works just fine. After branching the solution in Release/v.1.x.x and starting from here i get:

System.Security.VerificatonException: Operation could destabilize the runtime.

I have read all kinds of posts dealing with this Exception but nothing helped.

Some background information: .NET 4.0, VisualStudio2012, Silverlight 5, Infragistics Library

xav
  • 5,452
  • 7
  • 48
  • 57
ison
  • 11
  • 3
  • Is there a call stack with the exception? – alhalama Apr 07 '14 at 16:59
  • @alhalama This is the call stack: System.Security.VerificationException: Operation could destabilize the runtime. bei [AssemblyName].[UserControl].[OnButtonClicked](Object sender, RoutedEventArgs e) bei System.Windows.Controls.Primitives.ButtonBase.OnClick() bei System.Windows.Controls.Primitives.ToggleButton.OnClick() bei System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) bei System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e) bei MS.Internal.JoltHelper.FireEvent(...) – ison Apr 08 '14 at 06:00
  • does this error come when you click the button and if so, what is being done in the button click? – alhalama Apr 08 '14 at 15:50

1 Answers1

0

I found the problem. Nevertheless thank you for your research.

In the main application there are two Silverlight applications which refers to the assembly System.Windows.Interactivity in two different paths with two different versions. :(

ison
  • 11
  • 3