不加载自定义操作程序集
我的安装项目安装网站并使用类库执行一些自定义操作。该类库被复制到网站的 bin 文件夹中,之后 IIS 尝试加载它,即使网站根本不需要它。如何防止类库加载?也许可以将其复制到另一个目录而不是 bin 吗?或者也许可以配置 web.config 以防止加载该类库?
My setup project installs web site and executes some custom actions using a class library. That class library is copied to bin folder of the web site, and after that IIS tries to load it even though it isn't needed by the web site any how. How to prevent the class library from loading? Maybe it is possible to copy it to another directory instead of bin? Or maybe the web.config can be configured in such a way to prevent that class library from loading?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已将程序集移动到另一个文件夹,这解决了问题。
I've moved the assembly to another folder and that solved the problem.