为什么asp.net Web应用程序从bin文件夹加载未引用的程序集? [英] Why asp.net web application loads non-referenced assembly from bin folder?

查看:104
本文介绍了为什么asp.net Web应用程序从bin文件夹加载未引用的程序集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,


我正在寻找证明这种行为的文件。我正在使用asp.net开发一个Web应用程序。我无意中将一个未引用的.net dll复制到应用程序的bin文件夹(例如,helloWorld.dll)。当我运行Web应用程序并通过Debug看到
时 - > Windows - >模块,窗口显示helloWorld.dll被加载并可供应用程序使用。


我的代码没有对helloWorld.dll中的类的任何引用,但Web应用程序仍然加载它。我正在寻找一个文件说 - 默认情况下它会加载它们被引用的所有dll。


将等待一些响应



谢谢!

解决方案

我的代码没有任何引用helloWorld.dll中的类,但Web应用程序仍然加载它。我正在寻找一个文档说 - 默认情况下它会加载它们被引用的所有dll。


我怀疑正在服务的WPW3.exe在IIS中托管Web应用程序的应用程序池正在加载DLL。


您应该发布的帖子是以下两个论坛。 


http://forums.asp.net/


https://forums.iis.net/



All,

I am looking for a document that justify this behavior. I am developing a web application using asp.net. Accidently, i copied a non-referenced .net dll to the application's bin folder (for example, helloWorld.dll). When i run the web application and see through Debug -> Windows -> Modules, the window shows the helloWorld.dll gets loaded and is available to the application.

My code doesn't have any reference to the classes inside helloWorld.dll but web application still loads it. I am looking for a document that says - by default it loads all the dlls where they are referenced or not.

Will wait for some response

thanks!

解决方案

My code doesn't have any reference to the classes inside helloWorld.dll but web application still loads it. I am looking for a document that says - by default it loads all the dlls where they are referenced or not.

I would suspect that the WPW3.exe that is servicing that App Pool that Web application is being hosted by in IIS is loading the DLL.

Where you should post to find out are the two forums below. 

http://forums.asp.net/

https://forums.iis.net/


这篇关于为什么asp.net Web应用程序从bin文件夹加载未引用的程序集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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