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

Exception: File not found

9 Answers 119 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Einar
Top achievements
Rank 1
Einar asked on 13 Jul 2008, 08:49 PM
Hi
I got a weird Problem:
If i compile my .exe file, i can run it without problems..
but if i want to run it on another computer, the app crashes and says, it cant find Telerik.WinControls and/or Telerik.WinControls.UI. What am i doing wrong?

regards

9 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 15 Jul 2008, 03:33 PM
Hello Einar,

When you compile your executable, this does not merge the Telerik class libraries with it. Therefore you still need a reference to them. Hence, when you try running your application on another computer, the needed assemblies either should be in the same directory where the executable is or they should be in the GAC of that particular comptuer. 

The preferred way for application deployment is using the ClickOnce technology. Fore more information about this approach, please refer to our Knowledge Base article: Deploying RadControls for WinForms applications using ClickOnce technology.

If you have additional questions, feel free to contact me.

All the best,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Nikolay Dobrev
Telerik team
answered on 15 Jul 2008, 03:33 PM
Hello Einar,

When you compile your executable, this does not merge the Telerik class libraries with it. Therefore you still need a reference to them. Hence, when you try running your application on another computer, the needed assemblies either should be in the same directory where the executable is or they should be in the GAC of that particular computer. 

The preferred way for application deployment is using the ClickOnce technology. Fore more information about this approach, please refer to our Knowledge Base article: Deploying RadControls for WinForms applications using ClickOnce technology.

If you have additional questions, feel free to contact me.

All the best,
Nikolay Dobrev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Einar
Top achievements
Rank 1
answered on 16 Jul 2008, 06:36 AM
thanks, i think i know now how to do it
0
Ramzan Pukhraj
Top achievements
Rank 1
answered on 16 Mar 2010, 04:26 PM
Dear Einar,

I would appreciate; you canactivate above link again i am facing a same kind of problem.

Regards,
Ramzan
0
Nikolay
Telerik team
answered on 16 Mar 2010, 04:59 PM
Hi Ramzan Pukhraj,

Please refer to the correct link of the ClickOnce article: Deploying RadControls for WinForms applications using ClickOnce technology.

All the best,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Doug Hamilton
Top achievements
Rank 1
answered on 10 Nov 2010, 09:35 PM
I have successfully created an install of my application using the ClickOnce Technology and new version available checking.  It works great.  However, it is not practical in our environment.  I need, however, to create a "normal" windows setup file.  The problem I am having with it is that the Telerik dlls need to be in the application folder where the app is installed.  If I try to put them in the System folder on the client computer, the program won't run and gives a system.io.filenotfound exception.  How Can I get the program to install and run with the dll's loding in the system folder instead.  I have other applications that I will be installing and I don't want to have multiple instances of the dlls on every install.

Doug
0
Richard Slade
Top achievements
Rank 2
answered on 11 Nov 2010, 12:22 AM
Hello Doug,

If your target system allows it, then investigate installing the assemblies into the GAC. Have a look at this MSDN article

Hope that helps
Richard
0
Doug Hamilton
Top achievements
Rank 1
answered on 11 Nov 2010, 03:18 PM
Hi Richard,

Thank you for pointing me in the right direction!!  After reviewing that article and do a subsequent search on the GAC and the Visual Studio installer, I came across this link which solved my issue.

http://stackoverflow.com/questions/1889906/registering-dlls-in-the-gac-using-visual-studio-installer

Thanks again!

Doug
0
Richard Slade
Top achievements
Rank 2
answered on 11 Nov 2010, 04:05 PM
Glad you have that sorted Doug.
richard
Tags
General Discussions
Asked by
Einar
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Nikolay Dobrev
Telerik team
Einar
Top achievements
Rank 1
Ramzan Pukhraj
Top achievements
Rank 1
Doug Hamilton
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Share this question
or