WPF App: get Telerik binaries from install on target machine

3 posts, 0 answers
  1. Saher
    Saher avatar
    20 posts
    Member since:
    Jul 2013

    Posted 29 Jul 2013 Link to this post

    Hello,

    I have defined a WPF application that uses Telerik controls using Visual Studio 2010 SP1.

    I have copied what is in Debug folder (.exe files and .dll binaries) to another machine and it worked great. However, I don't want the Telerik binaries to be copied along the exe file. I want the exe to work with the local install of Telerik on the target machine. I installed Telerik on the target machine and added the Paths to binaries to the System Environment Path variable. Yet, I couldn't run the .exe file yet. 
    How can I achieve this?

    link of question on StackOverflow: WPF App: get Telerik binaries from install on target machine

    What I tried so far:

    • I installed Telerik on the target machine and added the Paths to binaries to the System Environment Path variable. Yet, I couldn't run the .exe file yet. How can I achieve this?
    • I installed gacutil.exe and added the binaries to GAC. I can test: gacutil /l | findstr “Telerik” and find all assemblies I added.
    • I tried to place these assemblies (Telerik) in C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0 trying both x64 and x86.
    • I tried to place these assemblies (Telerik) in C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5 trying both x64 and x86.

    None of the above works. The only way is having the .dll files right next to the .exe in the same directory which I do not want.

    Thanks,

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 01 Aug 2013 Link to this post

    Hi Saher,

    I would suggest to check the following articles about assembly  location resolution:

    How the Runtime locates Assemblies
    How to load an assembly at runtime that is located in a folder that is not the bin folder of the application
    How is an assembly resolved in .net

    Hope this helps.

    Regards,
    Yana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Saher
    Saher avatar
    20 posts
    Member since:
    Jul 2013

    Posted 02 Aug 2013 Link to this post

    Thanks a lot Yana!

    I fixed it. I needed to update my binaries in the GAC.
Back to Top