如何解决VS 2019 Ent 16.9.1 使用 ReportDesigner 的属性表崩溃
正在处理一个较旧的 aspx WebFroms 项目。但是,无论正在处理什么类型的项目,都会发生崩溃。作为测试,创建了一个新的 WebForms 项目,添加了一个新的报告(RDLC 文件)并添加了一个文本框。右键单击文本框并选择文本框属性,VS 进入无响应状态,然后在没有任何消息的情况下关闭。崩溃不仅发生在 TextBox 属性上,而且发生在任何具有除标准属性列表之外的属性页的控件上。这种情况已经发生了很长时间,但不必像最近那样处理报告。作为一种解决方法,我一直在编辑 XML,但这有时会变得有点混乱,并且在设置某些属性时更喜欢 UI,而不必记住所有 XML 节点。为了得到错误 devenv 在执行上述时被调试。这是堆栈跟踪引发的错误。
at System.Collections.Generic.SortedList`2.Add(TKey key,TValue value)
at Microsoft.ReportDesigner.ToggleItemList.RetrieveToggleItems(Report report)
at Microsoft.ReportDesigner.Dialogs.VisibilityPage.LoadData(IList item,Report report)
at Microsoft.ReportDesigner.Dialogs.VisibilityPage.LoadData(IList`1 item)
at Microsoft.ReportDesigner.Dialogs.TextBoxDialog.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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)</StackTrace><ExceptionString>System.ArgumentException: An entry with the same key already exists.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.SortedList`2.Add(TKey key,IntPtr lparam)</ExceptionString></Exception></TraceRecord>
An unhandled exception of type 'System.ArgumentException' occurred in System.dll
An entry with the same key already exists.```
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。