Visual Studio 并且 IIS Express 随机停止工作
Visual Studio and IIS Express randomly stops working
我用这台机器开发一年了,还是全新的。现在从 2-3 天开始,我的 visual studio 停止工作,而我 运行 我的 asp.net MVC 应用程序并重新启动。有时 IIS Express 停止工作,甚至浏览器退出。
我检查过activitylog.xml
来源:编辑器或编辑器扩展
System.ComponentModel.Win32Exception (0x80004005): Not enough storage
is available to process this command at
MS.Win32.UnsafeNativeMethods.RegisterClassEx(WNDCLASSEX_D wc_d) at
MS.Win32.HwndWrapper..ctor(Int32 classStyle, Int32 style, Int32
exStyle, Int32 x, Int32 y, Int32 width, Int32 height, String name,
IntPtr parent, HwndWrapperHook[] hooks) at
System.Windows.Interop.HwndSource.Initialize(HwndSourceParameters
parameters) at
System.Windows.Interop.HwndSource..ctor(HwndSourceParameters
parameters) at
System.Windows.Controls.Primitives.Popup.PopupSecurityHelper.BuildWindow(Int32
x, Int32 y, Visual placementTarget, Boolean transparent,
HwndSourceHook hook, AutoResizedEventHandler handler) at
System.Windows.Controls.Primitives.Popup.BuildWindow(Visual
targetVisual) at
System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean
asyncCall) at
System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject
d, DependencyPropertyChangedEventArgs e) at
System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs
e) at
System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs
e) at
System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs
args) at
System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex
entryIndex, DependencyProperty dp, PropertyMetadata metadata,
EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean
coerceWithDeferredReference, Boolean coerceWithCurrentValue,
OperationType operationType) at
System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp,
Object value, PropertyMetadata metadata, Boolean
coerceWithDeferredReference, Boolean coerceWithCurrentValue,
OperationType operationType, Boolean isInternal) at
System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object
value) at
Microsoft.VisualStudio.Language.Intellisense.Implementation.MouseTrackingQuickInfoPresenter.Render()
at
Microsoft.VisualStudio.Language.Intellisense.Implementation.IntellisenseSessionStack.OnSessionPresenterChanged(Object
sender, EventArgs e) at
Microsoft.VisualStudio.Language.Intellisense.Implementation.IntellisenseSession.RaisePresenterChanged()
at
Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()
at
Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()
at
Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object
sender, MouseHoverEventArgs e) at
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()
出现这个错误之前的一些日志如下
- 开始加载包 [Microsoft.VisualStudio.Debugger.Parallel]
- 包加载结束[Microsoft.VisualStudio.Debugger.Parallel]
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
然后出现错误(粘贴在开头)。
另外我还应该去哪里寻找真正的原因,因为这只是昨天的日志。
更新
我的事件日志实际上给出了 devenv 错误
Application: devenv.exe
Framework Version: v4.0.30319
Description: The
process was terminated due to an unhandled exception. Exception Info:
System.ComponentModel.Win32Exception at
MS.Win32.UnsafeNativeMethods.RegisterClassEx(WNDCLASSEX_D) at
MS.Win32.HwndWrapper..ctor(Int32, Int32, Int32, Int32, Int32, Int32,
Int32, System.String, IntPtr, MS.Win32.HwndWrapperHook[])
该问题(完全与代码相关)是由于 RichTextBox 控件引起的。 Microsoft 已解决此错误 here
我用这台机器开发一年了,还是全新的。现在从 2-3 天开始,我的 visual studio 停止工作,而我 运行 我的 asp.net MVC 应用程序并重新启动。有时 IIS Express 停止工作,甚至浏览器退出。
我检查过activitylog.xml
来源:编辑器或编辑器扩展
System.ComponentModel.Win32Exception (0x80004005): Not enough storage is available to process this command at MS.Win32.UnsafeNativeMethods.RegisterClassEx(WNDCLASSEX_D wc_d) at MS.Win32.HwndWrapper..ctor(Int32 classStyle, Int32 style, Int32 exStyle, Int32 x, Int32 y, Int32 width, Int32 height, String name, IntPtr parent, HwndWrapperHook[] hooks) at System.Windows.Interop.HwndSource.Initialize(HwndSourceParameters parameters) at System.Windows.Interop.HwndSource..ctor(HwndSourceParameters parameters) at System.Windows.Controls.Primitives.Popup.PopupSecurityHelper.BuildWindow(Int32 x, Int32 y, Visual placementTarget, Boolean transparent, HwndSourceHook hook, AutoResizedEventHandler handler) at System.Windows.Controls.Primitives.Popup.BuildWindow(Visual targetVisual) at System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall) at System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at Microsoft.VisualStudio.Language.Intellisense.Implementation.MouseTrackingQuickInfoPresenter.Render() at Microsoft.VisualStudio.Language.Intellisense.Implementation.IntellisenseSessionStack.OnSessionPresenterChanged(Object sender, EventArgs e) at Microsoft.VisualStudio.Language.Intellisense.Implementation.IntellisenseSession.RaisePresenterChanged() at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate() at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start() at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e) at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()
出现这个错误之前的一些日志如下
- 开始加载包 [Microsoft.VisualStudio.Debugger.Parallel]
- 包加载结束[Microsoft.VisualStudio.Debugger.Parallel]
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
- 进入功能VBDispatch::GetTypeLib
- 离开函数VBDispatch::GetTypeLib
然后出现错误(粘贴在开头)。 另外我还应该去哪里寻找真正的原因,因为这只是昨天的日志。
更新
我的事件日志实际上给出了 devenv 错误
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception. Exception Info: System.ComponentModel.Win32Exception at MS.Win32.UnsafeNativeMethods.RegisterClassEx(WNDCLASSEX_D) at MS.Win32.HwndWrapper..ctor(Int32, Int32, Int32, Int32, Int32, Int32, Int32, System.String, IntPtr, MS.Win32.HwndWrapperHook[])
该问题(完全与代码相关)是由于 RichTextBox 控件引起的。 Microsoft 已解决此错误 here