找不到依赖的dll [英] A dependent dll was not found

查看:167
本文介绍了找不到依赖的dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行该应用程序时,我的应用程序未在"Release x86"上运行,它在启动屏幕后立即崩溃.输出显示以下异常:

My app does not run on "Release x86" when running the app it crashes immediately after the splash screen. Output shows the following exception:

程序"[8204] dfz.exe"已退出,代码为-1073741515(0xc0000135)未找到相关的DLL".

它还告诉我该模块的构建没有符号,但是在构建设置中,我已将调试信息设置为Full.

It also tells me the module is build without symbols, however in build settings I have set debug info to Full.

我第一次为Windows应用商店构建应用程序时,它会正确构建,并且还将该版本发布到应用商店.当我进行手动重建以检查是否正确插入了广告时,该广告将无法运行.

The first time I build the app for the Windows Store it built correctly and I also published that version to the store. When I did a manual rebuild to check if ads where inserted correctly it would not run.

但是,我可以在ARM和X64上运行该应用程序,而发行时没有任何问题.只有带有.Net本机工具链的x86会抛出缺少的依赖DLL.

However, I can run the app on ARM and X64 with no problems on release. Only x86 with .Net native toolchain will throw the missing dependant DLL.

到目前为止,我已经尝试过:

  1. 创建了一个新项目,添加了我所有的文件和Nuget包,没有骰子
  2. 删除并更新了我所有的现有参考文献.
  3. 试图调试发行版,以便我可以找出软件包中缺少的DLL.但是它一直告诉我没有符号文件.

我正在寻找可以尝试的任何建议,因为我真的不知道为什么它不能在x86上运行.

I am looking for any suggestions I can try because I am really at a loss here of why it will not run on x86.

修改:当我运行空白UWP项目时,它还会返回DLL错误.看来我的开发环境糟透了.

A blank UWP project also returns the DLL error when i run it. It looks like i have a broken development environment.

Edit2:刚刚对另一台笔记本电脑进行了远程调试,该应用程序没有任何问题.因此,问题是与环境有关的问题.

Just did a remote debugging session to another laptop and the app worked with no problems. So the problem is an environment related issue.

推荐答案

是否可以为x64专门配置依赖项中的项目之一?

Could one of the projects in your dependencies be configured specifically for x64?

要检查的另一件事是您的项目中没有一个针对该配置而构建(我模糊地记得我几年前遇到的一个问题,听起来像您的情况……尽管不是针对Windows应用商店的问题……并且原来我的项目之一并未针对我选择的配置进行编译.)

Another thing to check is that one of your projects is not set to build for that configuration (I vaguely remember some problem I had years ago that sounds kind like your situation ... although not for windows store apps ... and it turned out one of my projects wasn't set to compile for the configuration I was selecting ).

这篇关于找不到依赖的dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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