Can I set a <probing> privatePath in ~/subdir/web.config without access to the root application .con

Posted by Bago on Stack Overflow See other posts from Stack Overflow or by Bago
Published on 2010-06-14T19:37:31Z Indexed on 2010/06/16 4:52 UTC
Read the original article Hit count: 1073

Filed under:
|
|

In ASP.NET, is it possible to set a path from a web.config in a subdir that is not setup as a virtual directory?

In other words, can I reference a private assembly in the ~/subdir/bin folder? Take a look at my setup below, and let me know if I'm doing something wrong, please.

Let me explain why I'm doing this:

  • my page is setup in ~/subdir.
  • I don't have write access to the root.
  • I only have FTP access to the server (i.e., I am not an IIS admin and I can't login to the machine)
  • I am trying to use FCKeditor in my subdir application

Here is my folder structure:

/
| -subdir
| | - Bin
| | | *FredCK.FCKeditorV2.dll
| | *Default.aspx
| | *web.config

Here is the <runtime> section of ~/subdir/web.config:

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

I've tried all sorts of things to get to work. However, upon checking the Fusion logs, my subdir never shows up in the probing paths.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about iis