在 NT 服务和 WCF 服务之间共享私有程序集(无需 GAC)
我有一个 WCF 服务 (.svc) 和一个 NT 服务 (.exe),需要共享私有程序集(无需求助于使用 GAC)。
目前我有这两个目录结构
\MyService\service.svc
\MyService\web.config
\MyService\bin\private assembly.dll
指向 \MyService
和
\MyApplication\myapp.exe 的 IIS 虚拟目录
\MyApplication\myapp.exe.config
\MyApplication\bin\private assembly.dll
我想要的是将所有内容都放在同一根目录中并共享私有程序集,与此类似...
\MyApplication\web\service.svc
\MyApplication\web\web.config
\MyApplication\service\myapp.exe
\MyApplication\service\myapp.exe.config
\MyApplication\bin\private assembly.dll
我知道上述结构是不可能的,因为禁止在应用程序目录之外进行程序集探测。
非常感谢有关此事的任何意见。
I have a WCF service (.svc) and a NT service (.exe) that need to share private assemblies (without resorting to using the GAC).
Currently I have these two directory structures
\MyService\service.svc
\MyService\web.config
\MyService\bin\privateassembly.dll
An IIS virtual directory pointing to \MyService
and
\MyApplication\myapp.exe
\MyApplication\myapp.exe.config
\MyApplication\bin\privateassembly.dll
What I would like is to have everything in the same root directory AND share private assemblies, similarly to this...
\MyApplication\web\service.svc
\MyApplication\web\web.config
\MyApplication\service\myapp.exe
\MyApplication\service\myapp.exe.config
\MyApplication\bin\privateassembly.dll
I understand the above structure is impossible since assembly probing outside the applications directory is prohibited.
Any input in this matter is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试这个。
try this.