【问题标题】:Set a <probing> privatePath in ~/App/web.config without access to the root application .config?在 ~/App/web.config 中设置 <probing> privatePath 而不访问根应用程序 .config?
【发布时间】:2011-03-03 16:34:20
【问题描述】:

privatePath 可以从位于根 webapp 的子目录中的 web.config 配置吗?子目录不是虚拟目录。

就我而言,我希望 ~/MyApp 中的 webapp 引用 ~/MyApp/bin 文件夹中的私有程序集。根据Microsoft documentation,这似乎在我的环境中是可能的,但我无法让它工作:

  • 我的应用设置在 ~/MyApp 中。
  • 我没有对根目录的写入权限。
  • 我只有 FTP 访问服务器(即,我不是 IIS 管理员,无法登录机器)
  • 我正在尝试在我的子目录应用程序中使用 FCKeditor

这是我的文件夹结构:

/
| -MyApp
| | - 斌
| | | *FredCK.FCKeditorV2.dll
| | *默认.aspx
| | *web.config

这是 ~/MyApp/web.config 的 &lt;runtime&gt; 部分:

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <probing privatePath="MyApp;MyApp/bin" />
    </assemblyBinding>
 </runtime>

我已经尝试了各种方法来开始工作。在 Fusion 日志中,我的 privatePath 目录没有显示在探测路径中。

【问题讨论】:

  • @Bago:它是“ASP.NET”,一个词。
  • 你似乎有一个关闭但非打开的依赖组件标签

标签: asp.net iis assemblies


【解决方案1】:

您也可以将其添加到 GAC,使其可供所有应用访问。

当然,这会忽略主要问题,这就是你为什么要这样破解你自己的服务器:)

【讨论】:

  • 在 GAC 中安装需要对机器的管理员访问权限,但不是 IIS。它与 IIS 无关。
  • 好的,感谢您的澄清。我只有 FTP 访问服务器,所以安装到 GAC 或配置虚拟目录是不可能的,对吧?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-01-17
  • 2021-04-23
  • 2020-09-30
  • 1970-01-01
  • 2019-11-09
  • 2011-06-02
  • 1970-01-01
相关资源
最近更新 更多