/
就我而言,我希望 ~/MyApp 中的 webapp 引用 ~/MyApp/bin 文件夹中的私有(private)程序集。根据Microsoft documentation ,这似乎在我的环境中是可能的,但我无法让它工作:
这是我的文件夹结构:
| -MyApp
| | - Bin
| | | *FredCK.FCKeditorV2.dll
| | *Default.aspx
| | *web.config
这里是 <runtime>
~/MyApp/web.config 的部分: <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="MyApp;MyApp/bin" />
</assemblyBinding>
</runtime>
我已经尝试了各种方法来开始工作。在 Fusion 日志中,我的 privatePath 目录没有显示在探测路径中。
最佳答案
您还可以将其添加到 GAC,使其可供所有应用程序访问。
当然,这会忽略主要问题,这就是为什么您要像那样尝试破解自己的服务器:)
关于asp.net - 在 ~/App/web.config 中设置 <probing> privatePath 而不访问根应用程序 .config?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3040324/