为什么我总是得到一个" System.EntryPointNotFoundException"在mscor.lib中?

时间:2016-08-09 12:43:58

标签: c# wpf visual-studio

如果我创建一个新的空WPF项目并构建并运行它,一切都按预期工作,应用程序以代码0退出,但在调试输出中我总是看到一条消息:

Exception thrown: 'System.EntryPointNotFoundException' in mscorelib.dll

重现的步骤:

  1. 使用" Visual C#/ Windows / WPF应用程序"在Visual Studio中创建一个新项目。模板
  2. 点击'开始'
  3. 这是正常的吗?我该如何摆脱它?

    谢谢,   迈克尔

    更新:完整的调试窗口输出

    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'. 
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Users\Michael\Documents\Visual Studio 2015\Projects\SDEars\SDEars\bin\Release\SDEars.vshost.exe'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll'. Symbols loaded.
    The thread 0x19a8 has exited with code 0 (0x0).
    The thread 0x22ec has exited with code 0 (0x0).
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'c:\users\michael\documents\visual studio 2015\Projects\SDEars\SDEars\bin\Release\SDEars.exe'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Symbols loaded.
    Exception thrown: 'System.EntryPointNotFoundException' in mscorlib.dll
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXmlLinq\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemXmlLinq.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXml\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemXml.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Users\Michael\AppData\Local\Temp\VisualStudio.XamlDiagnostics.9068\WpfXamlDiagnosticsTap.dll'. Cannot find or open the PDB file.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\assembly\GAC\Microsoft.VisualStudio.OLE.Interop\7.1.40304.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.OLE.Interop.dll'. Module was built without symbols.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationProvider.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll'. Symbols loaded.
    'SDEars.vshost.exe' (CLR v4.0.30319: SDEars.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemData\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemData.dll'. Symbols loaded.
    The program '[9068] SDEars.vshost.exe' has exited with code 0 (0x0).
    

    更新2:非常感谢有关如何开始调试

    的任何指示

1 个答案:

答案 0 :(得分:0)

感谢大家的帮助! 它在加载了一堆(过期的)Windows更新后消失了。仍然不知道出了什么问题,但现在“修复”......