Automatic adding a control to the GAC

20 posts, 0 answers
  1. rgf21
    rgf21 avatar
    100 posts
    Member since:
    May 2007

    Posted 27 Mar 2008 Link to this post

    Is there a way of automaticaly add a controll to the GAC? I need to make an install package to my program to deploy in other computers.

    Thanks
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 28 Mar 2008 Link to this post

    Hi Ricardo,

    Thank you for writing.

    I do not recommend installing assemblies into the GAC if you are not planning to share the same DLLs to a different application. It is sufficient to use the default option to copy them in the application folder. 

    Still, there is a possibility to add assemblies to the GAC during the installation process. For example, you could use the Setup Project option in Visual Studio. Please follow the steps provided below :
    1. Create a Setup Project (under the Setup and Deployment Project Templates)
    2. Open the File System Editor by navigating to the "View/Editor/File System" menu item.
    3. Right-click in File System Editor window and select the "Add Special Folder/Global Assembly Cache Folder" menu item to add the GAC folder to the list.
    4. Right click at the folder and choose "Add/File..." to add assembly.

    I hope this was helpful. Do not hesitate to contact me again if you need future assistance.

    Greetings,
    Martin Vasilev
    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. rgf21
    rgf21 avatar
    100 posts
    Member since:
    May 2007

    Posted 28 Mar 2008 Link to this post

    I'm using the Publish option in VS 2008. When I try to install the solution into another computer I get an error saying that Telerik.common dll isn't in GAC and it doesn't let me install.... I was looking for a solution to that...
  5. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 31 Mar 2008 Link to this post

    Hi Ricardo,

    Thank you for contacting me.

    If you use the "Publish" option, you could set up the publish properties of all Telerik assemblies to "Include". This will copy all necessary DLL's to the application's folder and your program will find it. To do this, please follow the steps provided below:

    1. Open Project properties by navigating to the "Project/YourProjectName Properties..." menu item.
    2. Select the "Publish" tab and click the "Application Files..." button.
    3. For all Telerik's assemblies change "Publish Status" to "Include"
    4. Confirm the changes and publish project.

    I hope this helps. Contact me again if you have any other questions.

    Regards,

    Martin Vasilev
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  6. Thomas Bloss
    Thomas  Bloss avatar
    1 posts
    Member since:
    Dec 2007

    Posted 03 Dec 2008 Link to this post

    I was having the same issue, so I set the Telerik assemblies to include in the publish properties for the project and I am now getting the following error:

    "Could not load file or assembly 'Telerik.WinControls.GridView, Version=6.0.1.0, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)":"Telerik.WinControls.GridView, Version=6.0.1.0, Culture=neutral, PublicKeyToken=5bb2a467cbec794e"}

    The project list the following assemblies from Telerik to include:

    Telerik.WinControls.dll
    Telerik.WinControls.GridView.dll
    Telerik.WinControls.UI.dll

    My application uses both RadGridView and RadTabStrip
  7. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 05 Dec 2008 Link to this post

    Hi Thomas Bloss,

    Thank you for contacting us.

    The exceptions mean that there are missing assemblies or dependencies. In your list I do not see the TelerikCommon.dll, which is required for our WinForms controls. Please, add it and change its Publish property to "Include".

    Write me back if you continue to experience any difficulties.

    All the best,
    Martin Vasilev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. Rikin
    Rikin avatar
    8 posts
    Member since:
    Apr 2012

    Posted 14 Jul 2012 Link to this post

    i m having the same problem.. when i run the setup the of the application it gives  the same error ... help me..
  9. Teodor
    Admin
    Teodor avatar
    56 posts

    Posted 16 Jul 2012 Link to this post

    Hi Rikin,

    Please check if there are any dependencies missing as described in the previous post. If that does not help try using non-GAC Telerik references to avoid missing assemblies. You can use the Telerik Upgrade Wizard(from VS Telerik menu) to switch to a folder based/downloaded distribution.

    Let me know if that helped.

    Regards,
    Teodor
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  10. Rikin
    Rikin avatar
    8 posts
    Member since:
    Apr 2012

    Posted 17 Jul 2012 Link to this post

    Thanx for reply..

    i am having the same problem. i tried all the possible way but still same problem occurs.. i set the  "TelerikCommon.dll  " file as include but no result..  m sending the snap shot of the error.. please check it and help me.. 
       
    i am using 30 days trial version of telerik winform control. dose it make any difference?? 
  11. Teodor
    Admin
    Teodor avatar
    56 posts

    Posted 17 Jul 2012 Link to this post

    Hi Rikin,

     Can you confirm that you are not using Gac references in your application and that Telerik.WinControls.dll has been added to the setup?

    Looking forward to your reply.

    Regards,
    Teodor
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  12. Rikin
    Rikin avatar
    8 posts
    Member since:
    Apr 2012

    Posted 17 Jul 2012 Link to this post

    Yes I am sure.. i have added  Telerik.WinControls.dll  to the setup. But can you tell me the steps to  " not use Gac references " in my application setup.. 

    waiting for your reply..
    with regards
    rikin

  13. Teodor
    Admin
    Teodor avatar
    56 posts

    Posted 17 Jul 2012 Link to this post

    Hi, 

    Can you confirm that you have the following files in your PublishTelerik\Application Files\ERP_[your_ version] folder?

    • Telerik.WinControls.dll.deploy
    • Telerik.WinControls.UI.dll.deploy
    • TelerikCommon.dll.deploy

    If these files are present the ClickOnce application installation should work.

    If they are not present - after you have set the Telerik assemblies to be included from the Application Files dialog you must also rebuild and republish the application again so the ClickOnce application can be updated.  

    Please let me know how that went.

    Regards,
    Teodor
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  14. Rikin
    Rikin avatar
    8 posts
    Member since:
    Apr 2012

    Posted 17 Jul 2012 Link to this post

    thanx for reply..
    yes all this files are there in my folder..

    here now i am sending another attachment of application files which i have set to include..

    I change some application files of my setup.. and now i get another error message 'application cannot bet started. contact the applcication'.
     help me.. 
    :(


    rikin 
  15. Teodor
    Admin
    Teodor avatar
    56 posts

    Posted 17 Jul 2012 Link to this post

    Hi Rikin,

     Can you send a sample project reproducing the issue?

    All the best,
    Teodor
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  16. Rikin
    Rikin avatar
    8 posts
    Member since:
    Apr 2012

    Posted 17 Jul 2012 Link to this post

    have you read my last post.. which is updated by me.. and now i m getting new error of "contact vendor. application can not be started" 

    and my project is too big but if it will be possible to send u sample code i will send you soon..

    with regards 
    rikin
  17. Teodor
    Admin
    Teodor avatar
    56 posts

    Posted 18 Jul 2012 Link to this post

    Hi Rikin,

    Sending the details of the application error can help us determine the problem.

    Also, I suggest reading through the application deployment documentation if you haven't already as you might find something you have omitted in your configuration.

    Regards,
    Teodor
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  18. Rikin
    Rikin avatar
    8 posts
    Member since:
    Apr 2012

    Posted 19 Jul 2012 Link to this post

    Hi Teodor  ,

    that problem  have solved i just exclude unnecessary dll files.. and deploy the project and it successfully done..
    but now i m suffering from another problem.. 
    "Problem generating manifest. Insufficient memory to continue the execution of the program." and " Not enough storage is available to complete this operation "
    and one more thing there are multiple telerik tools are in my toolbox.. Ex: radgridview is almost  3 times in tool box..
    if you have any idea to solve it.. please help me..
     
  19. Teodor
    Admin
    Teodor avatar
    56 posts

    Posted 20 Jul 2012 Link to this post

    Hello,

    Regarding the manifest issue you are facing - please provide more details so I can suggest an adequate measure.

    Regarding the toolbox issue. I recommend doing a full reset of the toolbox (only the default controls will remain but you can re-add the Telerik controls later):

    1. Close all Visual Studio 2010 instances; 
    2. Open Windows Explorer and navigate to the directory %localappdata%\Micorosft\VisualStudio\10.0
    3. Delete all *.tbd files (some of the files are hidden, delete them as well); 
    4. Delete the following registry key:

      HKEY_CURRENT_USER\Software\Wow6432Node(for 64-bit systems)\Microsoft\VisualStudio\10.0\ToolboxControlsInstaller
    5. Start Visual Studio As Administrator and use the Toolbox Configurator to set a required RadControls distribution in the Toolbox; 
    6. Visual Studio 2010 should get restarted automatically  
    7. Open existing WinForms project (or create new one) and check the toolbox content.

    After that the toolbox items should behave as expected.

    Greetings,
    Teodor
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  20. Rikin
    Rikin avatar
    8 posts
    Member since:
    Apr 2012

    Posted 21 Jul 2012 Link to this post

    Hi Teodor,

    I am using Visual Studio 2008...Pl provide the solution for the same..

    I am using Group box in grid view.. Have to delete unnecessary blank group..Pl help me out on the same also..Also find the attachment.
  21. Teodor
    Admin
    Teodor avatar
    56 posts

    Posted 25 Jul 2012 Link to this post

    Hello Rikin, 

    Regarding the toolbox, I suggest doing the same steps for VS2008:
    1. Close all Visual Studio 2008 instances; 
    2. Open Windows Explorer and navigate to the directory %localappdata%\Microsoft\VisualStudio\9.0(C:\Documents and Settings\[Username]\Local Settings\Application Data\Microsoft\VisualStudio\9.0 for Windows XP)
    3. Delete all *.tbd files (some of the files are hidden, delete them as well); 
    4. Delete the following registry key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ToolboxControlsInstaller
    5. Start Visual Studio As Administrator and use the Toolbox Configurator to set a required RadControls distribution in the Toolbox; 
    6. Visual Studio 2008 should get restarted automatically  
    7. Open existing WinForms project (or create new one) and check the toolbox content.

    Regarding the GridView issue, I suggest opening a separate support thread so it can be handled by a team specialized in the area.

    I hope this information was helpful.

    Edit: I have edited the response to show the correct registry key in step 4.

    Regards,
    Teodor
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready