由于应用程序不正确,应用程序无法启动

发布于 2024-11-06 02:34:49 字数 2346 浏览 0 评论 0原文

我在执行应用程序时收到此错误。 我在 Windows Server 2008 上使用 VS 2008 版本“9.0.30729.1 SP”。

在此处输入图像描述

这是我的清单文件 任何人

     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugMFC" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.30729.4148" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.30729.1" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>

都可以解释为什么它需要两个版本的“Microsoft.VC90.DebugCRT”,正如您在清单文件中看到的那样。版本“9.0.21022.8”和“9.0.30729.4148”。

我在我的文件夹 'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\ Microsoft.VC90.CRT' 中看到 'msvcm90.dll' 版本是 '9.0.30729.1'

错误是因为这个?

我在系统事件下看到了 3 个错误,如下所示。

  1. 无法找到从属程序集 Microsoft.VC90.CRT,最后一个错误是 您的系统上未安装引用的程序集。
  2. 解决 Microsoft.VC90.CRT 的部分程序集失败。参考错误消息:
    您的系统上未安装引用的程序集。
  3. d:\Barriergates\Debug\Barriergates.exe.Manifest 生成激活上下文失败。 参考错误消息:操作成功完成。

请帮助解决这些问题。

谢谢。

I am getting this error while execution of my application.
I am using VS 2008 version '9.0.30729.1 SP' on Windows Server 2008.

enter image description here

Here is my manifest file description

     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugMFC" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.30729.4148" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.30729.1" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>

Can anybody explain why it requires both version of 'Microsoft.VC90.DebugCRT' as you can see in manifest file. version '9.0.21022.8' and '9.0.30729.4148'.

I have seen in my folder 'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\ Microsoft.VC90.CRT' the 'msvcm90.dll' version are '9.0.30729.1'

Are the error is because of this?

I have seen under system event showing 3 errors are as follows.

  1. Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The
    referenced assembly is not installed on your system.
  2. Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error message: The
    referenced assembly is not installed on your system.
  3. Generate Activation Context failed for d:\Barriergates\Debug\Barriergates.exe.Manifest.
    Reference error message: The operation completed successfully.

Please help in these issue.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

昇り龍 2024-11-13 02:34:49

要在测试机器上运行调试 EXE,您必须执行一些特殊步骤。请参阅此处详细信息。

There are some special steps you must take to run your Debug EXE on a test machine. See details here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文