錯誤信息:內存位置訪問無效。 (Exception from HRESULT: 0x800703E6)


  • 錯誤提示:
錯誤信息:內存位置訪問無效。 (Exception from HRESULT: 0x800703E6)
異常類型:System.BadImageFormatException
堆棧跟蹤:   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
   at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstance()
   at System.Windows.Forms.AxHost.GetOcxCreate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.AxHost.EndInit()
   at DCITS.ADP.CELL.Controls.CellControl.InitializeComponent()
   at DCITS.ADP.CELL.Controls.CellControl.InitForm(DeclarationForm declareinfo)
   at DCITS.JZGL.Desktop.Views.HuaBiao.HuaBiaoView.showControl(String bbzlDm)
   at DCITS.JZGL.Desktop.Views.HuaBiao.HuaBiaoView.HuaBiaoView_Loaded(Object sender, RoutedEventArgs e)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

  • 解決方案:

【我的電腦】---【屬性】---【高級】---【設置】---【數據保護】

Dep功能默認就是開啟的,雖然可以對某些惡意程序起到安全保護作用。但是對於很多時候我們做測試環境或者軟件會有一定影響,對此完全禁用DEP功能很有必要。

打開命令行界面輸入

Bcdedit.exe/set {current} nx alwaysoff 

 

 

輸入以上命令之后,需要重啟服務器系統才會生效

重啟之后,再次返回打開如圖。顯示會灰色才是完全禁用的

 

如果想啟用DEP如果要啟用很簡單就是 Bcdedit.exe/set {current} nx alwayson

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM