Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jennifer Killingsworth 191 posts 248 karma points
    Mar 01, 2018 @ 12:45
    Jennifer Killingsworth
    0

    Is it possible to have nested folders in the /bin

    We've created user controls using Telerik.

    I see that you can nest folders in the /usercontrols directory (/usercontrols/subfolder/control.ascx), but we haven't been able to get user controls to work with folders nested in the /bin (/bin/subfolder/control.dll).

    Is there a way to do this?

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Mar 01, 2018 @ 13:49
    Alex Skrypnyk
    0

    Hi Jennifer

    You can create a subfolder inside bin and place the referenced assembly dll there. In this case, you have to add a PrivateBinPath element in the application/web config file with the subfolder location specified

    Thanks,

    Alex

  • Jennifer Killingsworth 191 posts 248 karma points
    Mar 01, 2018 @ 14:05
    Jennifer Killingsworth
    0

    Our developer says:

    "I’ve tried this a lot of different ways with no success (using a

    Can you provide a code example of how to do this?

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Mar 01, 2018 @ 14:11
    Alex Skrypnyk
    0

    Another way to do it -

    <configuration>  
       <runtime>  
          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">  
             <probing privatePath="bin;bin2\subbin;bin3"/>  
          </assemblyBinding>  
       </runtime>  
    </configuration>  
    

    https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/probing-element#example

  • Kyle 7 posts 77 karma points
    Mar 01, 2018 @ 14:35
    Kyle
    0

    Hi Alex,

    I'm working with Jennifer on this project and have tried this approach with no success. It will also give a little more detail on the issue we are trying to resolve (using two separate versions of the same .dll)

    Would you be able to let us know why this approach has not worked? Also, by using the probing element with 'PrivatePath', would we need to specify in any way which .dll each .ascx file is to use?

    Thanks for your help, Kyle

  • John Bergman 483 posts 1132 karma points
    Mar 01, 2018 @ 17:42
    John Bergman
    0

    I've done mapping to two different versions using the web.config's dependentAssembly, where you map two different version ranges to 2 different assemblies.

  • Kyle 7 posts 77 karma points
    Mar 01, 2018 @ 19:23
    Kyle
    0

    Hi John,

    We've tried the below approach as listed in another Umbraco forum thread (which uses dependentAssembly), but have not had any success. We've played around with different version ranges and file structures for the dll's. Would you be able to comment on any struggles you had in getting your dependent assemblies working?

    <dependentAssembly>
        <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" culture="neutral" />
        <bindingRedirect oldVersion="2012.0.0.0-2012.2.815.40" newVersion="2012.2.815.40" />
        <bindingRedirect oldVersion="2013.0.0.0-2013.2.611.40" newVersion="2013.2.611.40" />
        <codeBase version="2012.2.815.40" href="bin/Telerik_Web_UI/v2012/Telerik.Web.UI.dll" />
        <codeBase version="2013.2.611.40" href="bin/Telerik_Web_UI/v2013/Telerik.Web.UI.dll" /></dependentAssembly>
    
  • John Bergman 483 posts 1132 karma points
    Mar 02, 2018 @ 00:35
    John Bergman
    0

    This was the reference material I used to solve my issue.... It looks like your .config entries above are incorrect.

    https://stackoverflow.com/questions/3158928/referencing-2-different-versions-of-log4net-in-the-same-solution

Please Sign in or register to post replies

Write your reply to:

Draft