2013-05-27 71 views
1

将下降一个按钮拖到我的WPF的形​​式示数,我也试着键入XAML一个按钮(同样的错误)引发异常

它弹出了错误“MS.Internal.Validated +验证失败”被抛出

,然后后弹出的屏幕变白,并显示此:

Exception of type 'MS.Internal.Validate+ValidationFailure' was thrown. 
at MS.Internal.Validate.Retail(Boolean value) 
at MS.Internal.Design.DocumentModel.DocumentTreeManagers.ItemUpdater.ApplyDelta(INodeHost 
nodeHost, DeltaItemCollection delta, ModifiableDocumentTree root, DocumentNodeDictionary 
oldTable, Boolean updateTable, DocumentNodeDictionary deletedItems, Comparison`1 compare) 
at Microsoft.Windows.Design.DocumentModel.Trees.DocumentTreeManager.ApplyDelta(Delta delta, 
Comparison`1 compare) 
at Microsoft.Windows.Design.Platform.ViewProducerBase.ApplyUpdate(Delta delta) 
at Microsoft.Windows.Design.Platform.ViewProducerBase.IncrementalRebuild(DocumentTreeManager 
tree, Damage damage) 
at Microsoft.Windows.Design.Platform.ViewProducerBase.UpdateView(DocumentTreeManager tree, Damage 
damage) 
at Microsoft.Windows.Design.DocumentModel.ViewProducer.UpdateView(UpdateDamageArguments args) 

这看似随意的考虑我编辑这种形式在星期五没有错误。

回答

1

我在Visual Studio中打开同一个项目2012年版,而不是使用2010(如果我去这个它像正常添加一个按钮)

请注意,这是不是真的解决了这个问题最好的解决方案(考虑到不是每个人都有vs 2012的副本只是切换到)

1

我在我的WPF窗体中有一个类似的错误(至少相同的验证失败部分)。 就我而言,我可以通过关闭并重新打开视觉工作室并简单地选择项目上的“重建”来解决此问题。