views:

87

answers:

1

Can I set <probing> privatePath in the web.config located in a subdir of the root webapp? The subdir is not a virtual directory.

In other words, can a webapp in ~/subdir reference a private assembly in the ~/subdir/bin folder? According to the Microsoft documentation, it seems like this is possible in my environment, but I can't get it to work:

  • my app 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. In the Fusion logs, my privatePath dirs don't shows up in the probing paths.

A: 

you could also add it to the GAC, making it accessible to all apps..

of course this would ignore the major question, which is why are you trying to hack your own server like that :)

Sonic Soul
Regarding installing it to the GAC, maybe I don't understand. From what I could tell, installing to GAC requires administrative access to the IIS on the server--which I don't have. Furthermore, I can't negotiate with my admin because the server is in an institutional setting where IT will not support ASP.NET, only their CMS that runs on ASP.NET
Bago
installing in the GAC requires admin access to the machine, but not IIS.. it has nothing to do with IIS.
Sonic Soul
Right, thanks for the clarification. I only have FTP access to the server, so installing to the GAC or configuring virtual directories is out of the question, right?
Bago
that is correct.
Sonic Soul