应用程序无法启动,因为并行配置不正确 [英] Application has failed to start because side by side configuration is incorrect

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

问题描述

myapplication.exe
我已经在Windows 7上用Win 7 SDK开发了一个应用程序,但是当我将其加载到新计算机上时,它说应用程序无法启动,因为并排配置不正确",我尝试了依赖项遍历,并包含了所需的相同dll. />
myDLL.dll
我的dll在我的机器上工作正常,但在新机器上却不行

我已经尝试过
vcredist [几乎所有] 86,64 ..
.net [3,4]

当我在该计算机上为Windows安装SDK时,它将运行.

1如何在我们的application.exe中包含所需的dll?
2我们可以运行regsvr32来加载dll吗?

myapplication.exe
i have made a application on windows 7 with win 7 sdk but when i load it on new machine it says "Application has failed to start because side by side configuration is incorrect" i tried dependency walker and included same dll which it needs.

myDLL.dll
my dll works fine on my machine but not on new machine

i have tried
vcredist [nearly all] 86 ,64..
.net [3,4]

it runs when i install SDK for windows on that machine.

1 How can we include required dll in our application.exe?
2 can we run regsvr32 for dll to load?

推荐答案

听起来好像您刚刚将应用程序复制到新计算机上.最好的解决方案是创建一个安装程序包,然后安装应用程序-安装程序将把所需的文件复制到正确的位置.

您没有说过要使用哪个编译器,如果您使用的是Visual Studio专业版,则可以创建 Microsoft的准则 [ ^ ]但它看来您已经有效地尝试过了,但失败了.您可以尝试使用一种免费的安装创建工具,例如 Inno Setup [ NSIS [< ^ ].

创建安装程序 [用于InnoSetup的.NET Framework 1.1/2.0/3.5安装程序 [ ^ ] CP文章

正确安装应用程序的另一种方法是对所使用的库进行静态链接.这样会增加应用程序的大小,但应仅允许将应用程序复制到目标计算机上.
It sounds as if you have just copied your application to the new machine. The best solution is to create an installation package and install the application instead - the installation will then copy the required files to the correct place.

You haven''t said which compiler you are using, if you are using a professional version of Visual Studio then you can create a deployment project[^].

However if you are using an Express version of Visual Studio, which doesn''t support deployment projects, then you have more work to do. You can follow Microsoft''s guidelines[^] but it seems that you have effectively tried this and failed. You could try one of the free installation creation tools, such as Inno Setup[^] or NSIS[^].

There is some guidance of NSIS in the Creating an Installer[^] CP article. Inno Setup is covered in the .NET Framework 1.1/2.0/3.5 Installer for InnoSetup[^] CP article

The alternative to proper installation of your application is to use static linking of the libraries used. This increases the size of your application, but should allow the application to be merely copied onto the target machine.


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

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆