由于应用程序不正确,应用程序无法启动
我在执行应用程序时收到此错误。 我在 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 个错误,如下所示。
- 无法找到从属程序集 Microsoft.VC90.CRT,最后一个错误是 您的系统上未安装引用的程序集。
- 解决 Microsoft.VC90.CRT 的部分程序集失败。参考错误消息:
您的系统上未安装引用的程序集。 - 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.
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.
- Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The
referenced assembly is not installed on your system. - Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error message: The
referenced assembly is not installed on your system. - 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要在测试机器上运行调试 EXE,您必须执行一些特殊步骤。请参阅此处详细信息。
There are some special steps you must take to run your Debug EXE on a test machine. See details here.