Exception: File not found

10 posts, 1 answers
  1. Einar
    Einar avatar
    6 posts
    Member since:
    Apr 2008

    Posted 13 Jul 2008 Link to this post

    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
  2. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 15 Jul 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay Dobrev
    Admin
    Nikolay Dobrev avatar
    201 posts

    Posted 15 Jul 2008 Link to this post

    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
  5. Einar
    Einar avatar
    6 posts
    Member since:
    Apr 2008

    Posted 16 Jul 2008 Link to this post

    thanks, i think i know now how to do it
  6. Ramzan Pukhraj
    Ramzan Pukhraj avatar
    7 posts
    Member since:
    Dec 2009

    Posted 16 Mar 2010 Link to this post

    Dear Einar,

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

    Regards,
    Ramzan
  7. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 16 Mar 2010 Link to this post

    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.
  8. Doug Hamilton
    Doug Hamilton avatar
    22 posts
    Member since:
    May 2006

    Posted 10 Nov 2010 Link to this post

    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
  9. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 10 Nov 2010 Link to this post

    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
  10. Doug Hamilton
    Doug Hamilton avatar
    22 posts
    Member since:
    May 2006

    Posted 11 Nov 2010 Link to this post

    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
  11. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 11 Nov 2010 Link to this post

    Glad you have that sorted Doug.
    richard
Back to Top
UI for WinForms is Visual Studio 2017 Ready