几周前,我公司的笔记本电脑开始出现一些奇怪的问题。我无法再启动 Microsoft Developer Web Server(通过 Visual Studio->Debug)。后来我发现我无法执行任何 .NET 应用程序。
在查看我的 dmp 文件后与 Microsoft CLR 专家交谈时,他说
当加载到您的进程中时,.exe 文件中偏移量 0×168 处的 8 个字节被设置为 0。这是导致 CLR 失败的问题。这些位在您提供给我的文件中设置正确。
C:\Windows\System32\Detoured.dll 被加载到进程中。这对我来说意味着 detours 库正在您的机器上用于修改这些进程的行为。
我还发现,当我启动到安全模式时,一切正常。
此外,我发现如果我右键单击一个 .NET 可执行文件,然后选择“运行方式”并输入我当前登录的用户凭据,则该应用程序可以正常工作。如果我只是双击应用程序,它就不起作用。
有很多系统事件消息和 Dr. Watson 类型错误。这是我得到的一些:
从 Visual Studio 启动 MS Developer Web Server 时,消息框弹出窗口显示:
WebDev.WebServer40.exe has encountered a problem and needs
to close. We are sorry for the inconvenience.
Run Code Online (Sandbox Code Playgroud)
VSHost 系统事件日志条目:
Event 1:
Application: MyWebSite.vshost.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error
in …
Run Code Online (Sandbox Code Playgroud)