Laden...

Silverlight-Projekt hat nach Update von VS2010pro auf das VS2015pro Probleme mit Bindings

Erstellt von ThomasE. vor 7 Jahren Letzter Beitrag vor 7 Jahren 975 Views
T
ThomasE. Themenstarter:in
461 Beiträge seit 2013
vor 7 Jahren
Silverlight-Projekt hat nach Update von VS2010pro auf das VS2015pro Probleme mit Bindings

Hallo,

ich habe, seit dem ich ein Projekt vom VS2010pro auf das VS2015pro migirert habe, Probleme mit dem XAML-Designer im Silverlight-UserControl:


            <Style x:Key="TextBoxField" TargetType="TextBox">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="HorizontalAlignment" Value="Stretch"/>
                <Setter Property="Margin" Value="0,1"/>
                <Setter Property="Height" Value="20"/>
                <Setter Property="Padding" Value="2,0"/>
                <Setter Property="ToolTipService.ToolTip" Value="{Binding Path=CurrentStatusText, Mode=OneWay}"/>
                <Setter Property="Visibility" Value="{Binding Path=IsVisible, Mode=OneWay, Converter={StaticResource ResourceKey=VisibilityConv}}"/>
                <Setter Property="IsEnabled" Value="{Binding Path=IsReadOnly, Mode=OneWay, Converter={StaticResource ResourceKey=ReadOnlyConv}}"/>
                <Setter Property="BorderBrush" Value="{Binding Path=CurrentStatus, Mode=OneWay, Converter={StaticResource ResourceKey=StatusBorderConv}}"/>
                <Setter Property="Background" Value="{Binding Path=BackgroundColorView, Mode=OneWay, Converter={StaticResource ResourceKey=BackgroundColorConv}}"/>
                <!--
                <Setter Property="Text" Value="{Binding Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
                -->
            </Style>

Sobald ich das Binding mit 'Text' aktiviere, kommt vom Designer folgende Fehlermeldung: siehe Bild

Wenn ich das Binding mit dem 'Text' deaktiviere, wird alles ohne Probleme angezeigt.
Bei der Code-Ausführung funktioniert alles einwandfrei, natürlich dann, wenn das 'Text'-Binding aktiviert ist.

Kennt das jemand?

Im LogViewer ist noch folgende Fehlermeldung zu sehen:> Fehlermeldung:

Anwendung: XDesProc.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.AccessViolationException
bei MS.Internal.XcpImports.SetValueNative(IntPtr, UInt32, MS.Internal.CValue ByRef)
bei MS.Internal.XcpImports.SetValue(MS.Internal.IManagedPeerBase, System.Windows.DependencyProperty, System.Windows.DependencyObject)
bei System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Windows.DependencyObject)
bei System.Windows.FrameworkElement.set_Style(System.Windows.Style)

Ausnahmeinformationen: System.Reflection.TargetInvocationException
bei System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
bei System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
bei System.Reflection.RuntimePropertyInfo.SetValue(System.Object, System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
bei System.Reflection.RuntimePropertyInfo.SetValue(System.Object, System.Object, System.Object[])
bei Microsoft.VisualStudio.DesignTools.Platform.Metadata.LocalClrPropertyImplementation
.SetValue(System.Object, System.Object)
bei Microsoft.VisualStudio.DesignTools.SilverlightDesigner.SilverlightDependencyPropertyImplementation.SetValue(System.Object, System.Object)
bei Microsoft.VisualStudio.DesignTools.Platform.Metadata
.DependencyPropertyReferenceStep.SetValue(System.Object, System.Object)
bei Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders
.InstanceBuilderOperations.SetValue(System.Object, Microsoft.VisualStudio.DesignTools.Markup.Metadata.IProperty, System.Object, Boolean)
bei Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders
.ClrObjectInstanceBuilder.SetValue(Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.IInstanceBuilderContext, Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNode, System.Object, Microsoft.VisualStudio.DesignTools.Markup.Metadata.IProperty, System.Object)
bei Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders
.ClrObjectInstanceBuilder.ModifyValue(Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.IInstanceBuilderContext, Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNode, System.Object, Microsoft.VisualStudio.DesignTools.Markup.Metadata.IProperty, System.Object, Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.PropertyModification)
bei Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.DependencyObjectInstanceBuilderBase1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ModifyValue(Microsoft.VisualStudio .DesignTools.Platform.InstanceBuilders .IInstanceBuilderContext, Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNode, System.Object, Microsoft.VisualStudio.DesignTools.Markup.Metadata.IProperty, System.Object, Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.PropertyModification) bei Microsoft.VisualStudio.DesignTools.SilverlightDesigner.InstanceBuilders .DependencyObjectInstanceBuilder .ModifyValue(Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.IInstanceBuilderContext, Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNode, System.Object, Microsoft.VisualStudio.DesignTools.Markup.Metadata.IProperty, System.Object, Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.PropertyModification) bei Microsoft.VisualStudio.DesignTools.SilverlightDesigner.InstanceBuilders.FrameworkElementInstanceBuilder .ModifyValue(Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.IInstanceBuilderContext, Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNode, System.Object, Microsoft.VisualStudio.DesignTools.Markup.Metadata.IProperty, System.Object, Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.PropertyModification) bei Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNodeManager.ResolveReference(Microsoft .VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNode, System.Object, Microsoft.VisualStudio.DesignTools.Platform.Utility.DocumentNodePath) bei Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNodeManager.ResolveReferences() bei Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNodeManager.UpdateCore(Microsoft.VisualStudio .DesignTools.Platform.InstanceBuilders.IAttachViewRoot, Boolean, Boolean) bei Microsoft.VisualStudio.DesignTools.XamlDesigner.Views.XamlSceneView.UpdateReferencesInternal() bei Microsoft.VisualStudio.DesignTools.XamlDesigner.Views.XamlSceneView.UpdateInternal(Boolean, Boolean) bei Microsoft.VisualStudio.DesignTools.SilverlightDesigner.Views.SilverlightSceneView.UpdateInternal(Boolean, Boolean) bei Microsoft.VisualStudio.DesignTools.XamlDesigner.Views.XamlSceneView.UpdateFromDamage(ViewStateBits, Microsoft.VisualStudio.DesignTools.Markup.DocumentModel.DocumentNodeChangeList, Microsoft.VisualStudio.DesignTools.Designer.ViewModel.SceneUpdateStates) bei Microsoft.VisualStudio.DesignTools.Designer.ViewModel.SceneViewModel.TryUpdateView(Microsoft.VisualStudio .DesignTools.Designer.View.PipelineUpdateInfo) bei Microsoft.VisualStudio.DesignTools.Designer.ViewModel.SceneViewModel.SceneDocument_EditTransactionCompleting(System.Object, System.EventArgs) bei System.EventHandler1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Object, System.__Canon)
bei Microsoft.VisualStudio.DesignTools.Designer.Documents.SceneDocument.OnCompletingEditTransaction(Boolean, Microsoft.VisualStudio.DesignTools.Designer.Documents.SceneEditTransaction)
bei Microsoft.VisualStudio.DesignTools.Designer.Documents.SceneEditTransaction.Commit(Boolean)
bei Microsoft.VisualStudio.DesignTools.Designer.Documents.DesignerUndoService.CommitPlaceholderTextUndoUnit(Boolean)
bei Microsoft.VisualStudio.DesignTools.Designer.View.SceneView.CommitTextEditsInternal(Boolean)
bei Microsoft.VisualStudio.DesignTools.Designer.View.SceneView.SynchronizeTextEdits()
bei Microsoft.VisualStudio.DesignTools.Designer.View.SceneView.StopTimerAndCommitTextEdits()
bei Microsoft.VisualStudio.DesignTools.Designer.View.SceneView.OnTextCommitTimeoutTimer()
bei Microsoft.VisualStudio.DesignTools.Designer.View.SceneView.TextCommitTimeoutTimer_Tick(System.Object, System.EventArgs)
bei System.Windows.Threading.DispatcherTimer.FireTick(System.Object)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object,
Int32, System.Delegate)
bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
bei System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
bei System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading
.ContextCallback, System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback,
System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
bei MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System
.Threading.ContextCallback, System.Object)
bei System.Windows.Threading.DispatcherOperation.Invoke()
bei System.Windows.Threading.Dispatcher.ProcessQueue()
bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
bei MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System
.Object, Int32, System.Delegate)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
bei System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
bei System.Windows.Application.RunDispatcher(System.Object)
bei System.Windows.Application.RunInternal(System.Windows.Window)
bei System.Windows.Application.Run(System.Windows.Window)
bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.RunApplication()
bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess+<>c__DisplayClass5_0.<Main>b__0()
bei System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
bei System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading
.ContextCallback, System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback,
System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback,
System.Object)
bei System.Threading.ThreadHelper.ThreadStart()

Vielen Dank im Voraus!

Ich habe den Titel mal angepasst, so dass Suchende auch etwas damit anfangen können. EDIT: Ich sollte beim Wort "Shift" im Titel das "f" nicht vergessen... 😄

1.029 Beiträge seit 2010
vor 7 Jahren

Hi,

ich hatte mal etwas ähnliches - da lag es an einem ASUS-Programm, welches sich reingeklinkt hatte (War ein Audioprogramm). (Hat den ReSharper mit ähnlicher Meldung zerschossen - die haben das danach mit WinDbg x86 rausgefunden)

Das Web zeigt ziemlich viel zu solchen Fehlern - Comodo HIPS, VirtualBox tauchen scheinbar recht häufig als Schuldige auf...

Vll was ähnliches installiert?

LG