【问题标题】:WPF .net 4 application does not work properly on Windows 7 [closed]WPF .net 4 应用程序在 Windows 7 上无法正常工作 [关闭]
【发布时间】:2015-01-15 13:26:12
【问题描述】:

我在 Windows 8 上的 Visual Studio 2012 Express for Desktop 中创建了一个 WPF 应用程序 C#,目标框架 = .Net Framework 4。 当我在 Windows 7 中运行该程序时,它运行但工作不正确。例如:当你点击按钮时,点击事件不会被调用。在 Windows 7 上安装了 .Net Framework 4。 也不会发生任何错误。根本不工作任何按钮。如果您运行的是 Windows 8,那么一切正常。

【问题讨论】:

  • 请提供一些有问题的代码给我们。

标签: c# .net wpf windows visual-studio-2012


【解决方案1】:

用FUSLOGVW.exe 进行测试。

    The operation failed.
Bind result: hr = 0x80131047. No description available.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  C:\Release\Myapp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = My-pc\Mypc
LOG: DisplayName = System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes
(Fully-specified)
LOG: Appbase = file:///C:/Release/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = Myapp.exe
Calling assembly : Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Release\Myapp.exe.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: PublicKeyToken redirect found in portability config: 7cec85d7bea7798e redirected to b77a5c561934e089.
LOG: Version redirect found in portability config: 2.0.5.0 redirected to 4.0.0.0.
ERR: Failed to apply policy (hr = 0x80131047).
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80131047).

安装补丁后问题解决 http://support.microsoft.com/kb/2468871

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多