【问题标题】:The type initilizer for "j8" threw exception Visual Studio 2012“j8”的类型初始化程序抛出异常 Visual Studio 2012
【发布时间】:2013-01-31 03:48:27
【问题描述】:

当我在 VS 2012 中运行的工具中选择 PreEmptive Dotfuscator and Analytics 时,我遇到了以下问题,这是一个弹出的异常。

我该如何解决?

【问题讨论】:

    标签: c# windows-8 visual-studio-2012 microsoft-metro


    【解决方案1】:

    发件人:http://www.preemptive.com/forum/topic?f=18&t=23523

    如果您遇到此错误消息,请尝试添加“HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots\KitsRoot”注册表项并将其值与“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ Windows Kits\Installed Roots\KitsRoot"

    【讨论】:

      【解决方案2】:

      向史蒂夫致敬http://exe-steve.blogspot.in/2013/06/visual-studion-dotfuscator-community.html

      如果您遇到此错误消息,请尝试添加

      HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots\KitsRoot

      注册表项并赋予它与

      相同的值

      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot

      【讨论】:

        【解决方案3】:

        问题是键是missing in both registry location ..

        HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots
        
        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots
        

        我在另一台机器上找到了这些密钥.. 并在我的计算机上创建了两个.reg 文件到import 这些值registry

        first.reg

        Windows Registry Editor Version 5.00
        
        [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots]
        "KitsRoot"="C:\\Program Files\\Windows Kits\\8.0\\"
        "WindowsDebuggersRoot"="C:\\Program Files\\Windows Kits\\8.0\\Debuggers\\"
        "AppVerifier64BitAutomationRoot"="C:\\Program Files\\Application Verifier\\"
        "AppVerifier32BitAutomationRoot"="C:\\Program Files\\Application Verifier\\"
        

        second.reg

        Windows Registry Editor Version 5.00
        
        [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots]
        "KitsRoot"="C:\\Program Files\\Windows Kits\\8.0\\"
        "WindowsDebuggersRoot"="C:\\Program Files\\Windows Kits\\8.0\\Debuggers\\"
        "AppVerifier64BitAutomationRoot"="C:\\Program Files\\Application Verifier\\"
        "AppVerifier32BitAutomationRoot"="C:\\Program Files\\Application Verifier\\"
        

        一旦两个文件都创建了 double click on those .reg 文件以在这些位置添加密钥 ..Great!! 现在它对我有用!!

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2011-04-16
          • 1970-01-01
          • 1970-01-01
          • 2018-04-05
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多