对 ActiveX 控件使用 Machine.Config 和全局程序集缓存 - 是否推荐?
我目前正在使用一个 Intranet 站点,该站点需要使用 ActiveX 控件来执行一些客户端功能。但是,应用程序通常会从 Web.Config 读取一些设置(我们正在使用 .netTiers 框架)。
我发现可以通过添加到 machine.config 并将所需的 DLL 添加到全局程序集缓存来解决此问题,但我有点担心这不是一个理想的解决方案。我一直在阅读有关如何不建议使用 GAC 来做此类事情的文章,但我不知道还有其他可以采取的方法。
有人可以推荐这两种方式吗?提前致谢。
I'm currently working with an intranet site which requires the use of an ActiveX control to do some Client side functions. However the app normally reads some settings from the Web.Config (We are using the .netTiers framework).
I've found I can get around this by adding to the machine.config and adding the required DLLs to the Global Assembly Cache, but I'm a little worried this is not an ideal solution. I keep reading about how it's not recommended to use the GAC for such things but I'm not aware of any other approaches to take.
Is anyone able to recommend either way? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论