Is it possible, in ASP .net, to reference private assembly in a non-virtual subdirectory?
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/14
19:42 UTC
Read the original article
Hit count: 208
Is it possible to reference a private assembly in asp .net from a sub-folder that is not setup as a virtual directory? In other words, my page is setup in ~/subdir, I don't have access to ~/, and I am not an IIS admin. Can I reference a private assembly? How would I do this? I've tried <%@ Assembly Src="/subdir/bin/Assembly.dll %> and <%@ Assembly Src="/subdir/bin/Assembly.dll %> , but I get the messages "There is no build provider to match the extension .dll" or "Failed to map to path" respectively.
Here is my folder structure:
/
| -subdir
| | - Bin
| | | *Assembly.dll
| | *Default.aspx
I've heard that in web.config might do the trick, but when I've tried it, it doesn't seem to work. Furthermore, I've read that only works in the application .config file. (i.e., the one in ~/). Anyhow, I already tried adding the following to web.config:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="/subdir/bin" />
<dependentAssembly>
<codeBase href="/subdir/bin/Assembly.dll"/>
</dependentAssembly>
</assemblyBinding>
For more background on my problem, I am simply using a shared host, all I have is access to is that subdirectory, and I am trying to use fckeditor.
© Stack Overflow or respective owner