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

Automatic adding a control to the GAC

19 Answers 356 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
rgf21
Top achievements
Rank 1
rgf21 asked on 27 Mar 2008, 09:56 AM
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

19 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 28 Mar 2008, 06:09 PM
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
0
rgf21
Top achievements
Rank 1
answered on 28 Mar 2008, 06:54 PM
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...
0
Martin Vasilev
Telerik team
answered on 31 Mar 2008, 01:08 PM
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
0
Thomas Bloss
Top achievements
Rank 1
answered on 03 Dec 2008, 02:43 PM
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
0
Martin Vasilev
Telerik team
answered on 05 Dec 2008, 04:58 PM
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.
0
Rikin
Top achievements
Rank 1
answered on 14 Jul 2012, 01:33 PM
i m having the same problem.. when i run the setup the of the application it gives  the same error ... help me..
0
Teodor
Telerik team
answered on 16 Jul 2012, 12:12 PM
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 >>
0
Rikin
Top achievements
Rank 1
answered on 17 Jul 2012, 05:06 AM
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?? 
0
Teodor
Telerik team
answered on 17 Jul 2012, 09:24 AM
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 >>
0
Rikin
Top achievements
Rank 1
answered on 17 Jul 2012, 09:43 AM
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

0
Teodor
Telerik team
answered on 17 Jul 2012, 10:32 AM
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 >>
0
Rikin
Top achievements
Rank 1
answered on 17 Jul 2012, 11:08 AM
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 
0
Teodor
Telerik team
answered on 17 Jul 2012, 11:19 AM
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 >>
0
Rikin
Top achievements
Rank 1
answered on 17 Jul 2012, 11:46 AM
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
0
Teodor
Telerik team
answered on 18 Jul 2012, 07:56 AM
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 >>
0
Rikin
Top achievements
Rank 1
answered on 19 Jul 2012, 10:11 AM
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..
 
0
Teodor
Telerik team
answered on 20 Jul 2012, 01:16 PM
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 >>
0
Rikin
Top achievements
Rank 1
answered on 21 Jul 2012, 06:21 AM
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.
0
Teodor
Telerik team
answered on 25 Jul 2012, 10:43 AM
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 >>
Tags
General Discussions
Asked by
rgf21
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
rgf21
Top achievements
Rank 1
Thomas Bloss
Top achievements
Rank 1
Rikin
Top achievements
Rank 1
Teodor
Telerik team
Share this question
or