我有一个在“默认网站”下定义的IIS应用程序,我希望对它使用在/bin以外的其他目录中定义的公共程序集。我在IIS应用程序的web.config中添加了一个带有公共程序集位置的节。但是,assemblyBinding似乎被忽略了。为什么它会被忽略?
<runtime>
<probing privatePath="C:\Program Files\MyProduct\Bin\" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="MyProduct.Security" publicKeyToken="XXXXXXXXXXXXXXXXX" culture="neutral" />
<codeBase version="1.0.0.0" href="file:///c:\program files\myproduct\bin\MyProduct.Security.dll" />
</dependentAssembly>
</assemblyBinding>
</runtime>发布于 2013-12-12 10:11:02
来自MSDN:
如果程序集具有强名称,则代码库设置可以位于本地intranet或互联网上的任何位置。如果程序集是私有程序集,则基本代码设置必须是相对于应用程序目录的路径。
https://stackoverflow.com/questions/20533348
复制相似问题