使用Windows 7和Visual Studio 2010,我正在编写一个C#自定义UserControl.我在代码视图中进行了数周的编码,最近当我尝试切换到设计模式时,Visual Studio被绞死,"没有回应".我可以等一个小时,但仍然没有任何反应.单击关闭按钮,它会显示"您是否要等待,关闭,重新启动并向Microsoft发送信息"对话框.
有没有办法(堆栈)跟踪设计者试图执行的代码?也许设计时跟踪消息或断点?
每次我去设计师Visual Studio冻结(无响应)30秒以上,之后我点击任何元素/小部件,它再次冻结30+.这可能是5次,然后我将能够编辑和设计.
眼镜:
尝试:
问题是什么?
编辑XAML导致Visual Studio的Designer崩溃我没有编辑Xaml来解决问题,我只是单击我的View来查看.但是解决方案不起作用.
Visual Studio 2012设计视图导致冻结修复无效.
尝试单击设计器视图时,Visual Studio 2013挂起/冻结无应答.
编辑:
由于上述错误" 不支持 ",我无法在安全模式下打开任何旧版本(对于同一个应用程序)
我能够以安全模式创建一个新项目,它运行良好.
我能够在普通模式下创建一个新项目,并且工作正常.
当我将整个项目复制/粘贴到另一个设备时,我遇到了同样的冻结问题.所以,我认为这是我项目的独特之处.
我忘了提到我去设计师的某些时候,它说Invalid Markup并阻止我看到View,直到我从XAML中删除这些行:
<dxg:TableView.ColumnMenuCustomizations>
<dxb:RemoveBarItemAndLinkAction …Run Code Online (Sandbox Code Playgroud)在WPF应用程序中编辑XAML时,Visual Studio 2010 RTM会随机崩溃.我正在Win 7上运行它完全更新.
已安装的扩展/插件是:
崩溃日志为:错误应用程序名称:devenv.exe,版本:10.0.30319.1,时间戳:0x4ba1fab3错误模块名称:clr.dll,版本:4.0.30319.1,时间戳:0x4ba1d9ef异常代码:0xc0000005错误偏移量:0x0017f146错误进程ID:0xd78错误应用程序启动时间:0x01caedc7341e18e3错误应用程序路径:C:\ Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe错误模块路径:C:\ Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
有没有人遇到过这个?也许找到一个解释?
在以下情形中,我们在VS2010 WPF设计器中的各种机器上遇到崩溃:
要重现错误,请创建新的WPF解决方案,执行以下操作:
没有数据/命令绑定,没有引用FluentNHibernate功能的代码或任何高度复杂的代码,只是在MainWindow.xaml中使用以下XAML的新WPF解决方案:
<Window x:Class="testWpfApplication2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="800"
Title="MainWindow" Height="350" >
<Grid>
<TextBox Text="yxcydfdssdfsdfdsfsdsddsasdyxcasd" />
</Grid>
</Window>
Run Code Online (Sandbox Code Playgroud)
这是完整的Stacktrace:
System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean …Run Code Online (Sandbox Code Playgroud)