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

How read Telerik.Web.UI.dll from GAC

3 Answers 336 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Silvia
Top achievements
Rank 1
Silvia asked on 26 Oct 2011, 09:39 AM

Hi,
I installed Telerik.Web.UI.dll in Gac and I set it in the machine's Web.config :

<handlers>
            <add name="Telerik_Web_UI_WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
 </handlers>

as explained in http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html

Unfortunately, I have the following error.Does anyone know how to fix it?
Thank you.
Best regards,
Silvia

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.

Source Error:

[No relevant source lines]

Source File: none    Line: 0

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Version Information: Microsoft .NET Framework Version:2.0.50727.5662; ASP.NET Version:2.0.50727.5053 

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 26 Oct 2011, 09:55 AM
Hello Silvia,

I think that the information from this documentation topic will help you eliminate the exception you currently get.

Regards,
Sebastian
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Silvia
Top achievements
Rank 1
answered on 26 Oct 2011, 12:07 PM
Hi Sebastian,
thank you for replying!
Actually we are not using the Disign in VS but only the Source. So, we don't have the Telerik.Web.Design.dll library installed in GAC but just the Telerik.Web.UI.dll. Moreover we checked to have  Visual Studio 2008 SP1 installed.
Pratically, I followed these steps (as shown in http://www.telerik.com/help/aspnet-ajax/introduction-design-time-troubleshooting.html) :

GAC-deploy the control library assembly

  • Add Telerik.Web.UI.dll in the GAC (see details in this topic)

  • Remove Telerik.Web.UI.dll from your bin folder

  • Make sure you have the following line in your web.config:

    Copyweb.config
    <add assembly="Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>

To be more precise I'll report the code in my machine's web.config sections below:

 <assemblies>
        ... ... ... 
       <add assembly="Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
  </assemblies>
 <handlers>
         ... ... ...
         <add name="Telerik_Web_UI_WebResource_axd"  path="Telerik.Web.UI.WebResource.axd" verb="*" preCondition="integratedMode" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
  </handlers>
  <httpHandlers>
.... ... ...
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
  </httpHandlers>
  <controls>
... ... ... 
       <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
   </controls>


And  now I have the following problem:

Server Error in '/' Application.

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager]
   Telerik.Web.UI.RadScriptManager.OnPreRender(EventArgs e) +251
   System.Web.UI.Control.PreRenderRecursiveInternal() +108
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394


Version Information: Microsoft .NET Framework Version:2.0.50727.5662; ASP.NET Version:2.0.50727.5053 



Do you find something wrong in my web.config sections? Do you have any other tips?
Thank you!
Silvia

0
Silvia
Top achievements
Rank 1
answered on 26 Oct 2011, 03:58 PM
Hi!
I think I have fixed it.
In addition to the above settings in machine's web.config, I wrote the following statement in the Application's Web.config:

  <system.webServer>
    <handlers>
          <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*"    type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
    </handlers>
  </system.webServer>

See http://www.telerik.com/help/aspnet-ajax/radscriptmanager.html

Regards,
Silvia

Tags
General Discussions
Asked by
Silvia
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Silvia
Top achievements
Rank 1
Share this question
or