ASP.NET application reference to assembly in programmatically loaded assembly

╄→гoц情女王★ 提交于 2019-12-06 12:35:52
HVS

There are a few ways to do this. One way is described in the Microsoft Knowledge Base article "How to load an assembly at runtime that is located in a folder that is not the bin folder of the application". It provides a pretty good step-by-step method of how to do this.

You can copy the dependent assembly into the Bin folder or install it in the GAC.

I'm thinking you can add assembly references to the web.config, in the <compilation> section, like so:

<compilation debug="true">
  <assemblies>
     <add assembly="Aspose.Cells, Version=4.1.2.0, Culture=neutral,  PublicKeyToken=9a40d5a4b59e5256"/>
  </assemblies>
</compilation>

I am not altogether certain this will work, and it may require a corresponding entry to web.config in a <configSections> node under <configuration>.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!