子应用程序中的 HttpModule 无法加载类型
我在配置 httpModule 时遇到一些问题。
我的网站的结构是 1 个主网站,其中包含独立的 Web 应用程序。因此,我将我的应用程序文件夹转换为 Web 应用程序,这样他自己的 bin 将用于代码。
在我的主网站的 web.config 中,我配置了一个连接到我的主网站 bin 文件夹中的 dll 的 HttpModule。
现在,我在将子文件夹转换为真实应用程序时遇到问题,收到错误“无法加载类型...”。其原因是 dll 位于较高级别。
首先,我希望 IIS 能够检查 Web 应用程序的 bin,如果 dll 不存在,则进一步检查更高级别的 bin,但这不起作用。 我还遇到一个问题,出于安全原因,我无法将 dll 部署到 GAC。
有人可以为我的问题提供另一种解决方案吗?
I am having some problems configurating my httpModule.
The structure of my site is 1 main website with sapperate web applications in it. So I convert my application folders to a web application so his own bin will be used for the code.
In the web.config of my main site I configured a HttpModule connected to the dll in the bin folder of my main website.
Now I am having the problem when converting my sub folders to a real application that I get the error "Could not load type ...". The reason for this is that the dll is situated at a higher level.
First I hoped IIS would check the bin of the web application and if the dll isn't there go further to the bin at a higher level but that is not working.
I have also the problem that for security reasons I cannot deploy my dll to the GAC.
Can somebody give me another solution for my problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在与一些人讨论后,我发现让这个东西发挥作用的唯一方法是部署到 GAC。没有其他可能的答案。
After discussing with some people I discovered the only way to get this thing working is by deploying to the GAC. No other possible answer.