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

Install into GAC on Server 2008 r2?

7 Answers 307 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David A.
Top achievements
Rank 1
David A. asked on 19 Mar 2011, 08:54 AM
Hi,

I have been unsuccessful in my attempts to install Telerik.Web.ui.dll into the GAC on our Win 2008 server r2.  I have tried everything from drag drop to windows\assembly (doesn't show an error, doesn't install) to gacutil from 2.0 sdk (error with telerik assy being greater than current assembly) to gacutil 4.0 from VS 2010 tools.  I am running my sites under .NET 4.0 and have set all application pools to use .NET 4.0. 

Is there any way to do this other than placing the telerik.web.ui.dll in each bin folder for each app?

Thanks!

7 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 21 Mar 2011, 09:08 AM
Hi David A.,

You may have to change Local Access Policy for the User Account Control to be able to add assemblies to the cache on Windows Server 2008 R2. Here is some resource that will help you:
http://blogs.msdn.com/b/mossbiz/archive/2010/06/10/add-an-assembly-to-the-global-assembly-cache-on-windows-server-2008-r2.aspx

Kind regards,
Vasil
the Telerik team
0
David A.
Top achievements
Rank 1
answered on 22 Mar 2011, 03:30 PM
Thank you Vasil.  I tried that already but the same thing happened.  I wonder if it has something to do with 64bit, since it also did not install into GAC on my local 64bit pc.  I'll just push the .dll in each client bin folder.
0
Vasil
Telerik team
answered on 25 Mar 2011, 03:24 PM
Hi David A.,

Windows Server 2008 R2 has no 32bit version, so the blog post in the msdn site should be related to the 64bit version. Did you tried to install another assemblies in the GAC? Does this error occur with another assemblies? You can also try to use '/f' option of the gacutil when installing the assembly. This should force the installation in case there is previous installation of this assembly. Be sure to run the console as Administrator. If you are unable to add any assemblies into the GAC you should probably write to Microsoft about this.

Greetings,
Vasil
the Telerik team
0
David A.
Top achievements
Rank 1
answered on 25 Mar 2011, 03:39 PM
I have installed other assemblies from other 3rd parties into the GAC using the method you described previously.  I have also tried the /f swtich (from command prompt "run as administrator") and the same thing happens, no error, no success, just nothing.  Thank you for you assistance!
0
Vasil
Telerik team
answered on 29 Mar 2011, 01:08 PM
Hello David A.,

Back to your original post. You wrote that you have tried to drag&drop assembly into \windows\assembly\ folder. This is fine for .NET 3.5, but Global Assembly Cache for .NET 4.0 is located in \Windows\Microsoft.NET\assembly\ .
Could you please confirm that the assembly is not added to \Windows\Microsoft.NET\assembly\ folder? Because that not getting error message when installing does not mean that the assembly is not installed in the right folder.

Greetings,
Vasil
the Telerik team
0
David A.
Top achievements
Rank 1
answered on 31 Mar 2011, 04:47 PM
Thank you for pointing this out.  Yes, it is in the c:\windows\microsoft.net\assembly\gac_msil\telerik.web.ui folder but if I remove my telerik.web.ui.dll from a bin folder of one of my projects, it doesn't see it in the GAC and the page fails.
0
Vasil
Telerik team
answered on 01 Apr 2011, 08:07 AM
Hi David A.,

As I understand you succeeded in installing the controls to the GAC already. The next step will be to change the references in your project to point to GAC instead of the local dll.
1) Remove the Telerik.Web.UI from \bin folder.
2) Open web.config of your project and make sure that the references to the telerik.web.ui assembly are using right version.
3) If you are using WepApplication, in the Solution explorer, from references remove the Telerik.Web.UI. Then add it again. When adding, make sure to reference the dll from the GAC, instead of browsing the dll itself.

Also check this help topic if you have some difficulties with the assembly referencing: http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html

If you are still unable to run the project, please write to us what is the exact compilation error that you are getting.

Best wishes,
Vasil
the Telerik team
Tags
General Discussions
Asked by
David A.
Top achievements
Rank 1
Answers by
Vasil
Telerik team
David A.
Top achievements
Rank 1
Share this question
or