This is a migrated thread and some comments may be shown as answers.

WPF App: get Telerik binaries from install on target machine

2 Answers 96 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saher
Top achievements
Rank 1
Saher asked on 29 Jul 2013, 07:02 PM
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 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 01 Aug 2013, 10:46 AM
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 >>
0
Saher
Top achievements
Rank 1
answered on 02 Aug 2013, 04:57 PM
Thanks a lot Yana!

I fixed it. I needed to update my binaries in the GAC.
Tags
General Discussions
Asked by
Saher
Top achievements
Rank 1
Answers by
Yana
Telerik team
Saher
Top achievements
Rank 1
Share this question
or