本文介绍了应用程序启动失败,因为应用程序不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这是我的清单文件描述

     <?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".

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'.

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

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'

错误是因为这个吗?

我在系统事件下看到显示 3 个错误如下.

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

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

请帮助解决这些问题.

谢谢.

推荐答案

在测试机器上运行调试 EXE 必须采取一些特殊步骤.请在此处查看详细信息.

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

这篇关于应用程序启动失败,因为应用程序不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 12:08
查看更多