How do I reference assemblies outside the bin folder in an ASP.net application?

后端 未结 5 1553
梦谈多话
梦谈多话 2020-12-05 16:14

I\'ve a working XML Web service written in ASP.Net. Now I need to reference certain assemblies lying in a specific folder e.g. c:\\NotMyCode
I do no

5条回答
  •  庸人自扰
    2020-12-05 16:52

    You could always put your referenced assemblies in the GAC, then the location would not matter. You can install the component by dragging it into the GAC (C:\windows\assembly) or running GACUtil.exe.

    This article may help. It describes the "Best Practices for Assembly Loading."

    At first I thought you could used the element in the runtime/assemblyBinding in the web.config, but the probing will only allow you to specify subdirectories under the root location.

提交回复
热议问题