IIS 7.0 / Windows Server 2008中 - DLL不是在ASP.NET应用程序中发现 [英] IIS 7.0 / Windows Server 2008 - DLL not found in ASP.NET application

查看:228
本文介绍了IIS 7.0 / Windows Server 2008中 - DLL不是在ASP.NET应用程序中发现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试运行托管在Windows Server 2008中的x86通过IIS 7.0的ASPX页面,使用.NET 4.0。我增加了一个应用程序 APP1 的IIS,在默认Web站点,映射到DIR C:\ TOTO \ APP1 包含的Web.config 文件。 我的错误是:

I try to run an ASPX page hosted on a Windows Server 2008 x86 through IIS 7.0, with .NET 4.0. I added an application, app1, to the Default Web Site of IIS, mapped to dir C:\toto\app1 which contains the Web.config file. The error I have is:

无法加载文件或程序集xxx.dll或它的某一个依赖的等

xxx.dll 是一个.NET的DLL,它包装机C ++的DLL(他们是无法加载的依赖关系),所有张师傅位于 C:\ TOTO \ APP1 \ BIN 。我试图修改PATH环境变量,以便它包含在目录(是的,我知道这是不好的:-)),但这并没有反正工作。

and xxx.dll is a .NET DLL that wraps native C++ DLLs (they are the dependencies that fail to be loaded), all of them are located in C:\toto\app1\bin. I tried to modify the PATH env variable so that it contained the bin directory (yes, I know it's bad :-) ), but this did not work anyway.

我想应该有一些东西在IIS应用程序的水平,但我看不出有什么......请您帮忙吗?

I guess there should be something at IIS application level, but I could not see what... Could you please help ?

非常感谢!

编辑:复制在本机的DLL C:\ Windows \ System32下实际工作,但它不是一个愉快的解决方案,在所有...

copying the native DLLs in C:\windows\system32 actually works, but it's not a pleasant solution at all...

推荐答案

好了,终于成功地使其通过复制DLL文件到 Windows \ System32下目录工作(不知道为什么没有wotk的第一时间,我的可能是一个错误...)。该应用程序\ BIN 文件夹不工作,也不请问路径的变化变量。

Well, finally managed to make it work by copying the DLLs into windows\system32 directory (no idea why it did not wotk the 1st time, probably an error of mine...). The application\bin folders don't work, neither does the change of the PATH variable.

如果有人知道一个更好的解决方案(我不觉得这一个辉煌可言,这可能会导致DLL的碰撞等),我会很高兴听到这个消息!

If anyone knows a better solution (I don't find this one brilliant at all, that can cause DLLs collision and so on), I'd be glad to hear it !

这篇关于IIS 7.0 / Windows Server 2008中 - DLL不是在ASP.NET应用程序中发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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