4 Answers, 1 is accepted
It seems that you have not registered the Telerik.Web.UI assembly and the Telerik.Web.UI namespace respectively. Please follow the instructions from the 'Integrating RadControls in MOSS' chapter in the online documentation to eliminate the error you receive:
http://www.telerik.com/help/aspnet-ajax/introduction.html
Best regards,
Sebastian
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Sebastian,
First, thanks for your help.
I made all the changes to the web.config from your documentataion. There were a lot of additions so I tried to be very careful. I renamed the web.config and then copied the modified one into the folder. I started with the <sectionGroup additions and ended with everything just before <configuration>
But I'm still getting the same error.
Is there anything else I need to do?
Jim
Below is the error I'm getting
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 154: <assemblies> Line 155: <add assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> Line 156: <add assembly="System.Web.Extensions, Version=1.0.61025.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> Line 157: </assemblies> Line 158: <expressionBuilders> |
Source File: C:\Inetpub\wwwroot\wss\VirtualDirectories\80\web.config Line: 156
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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]. |
Thanks for the help.
I'm making some progress with my current environment. Below is the code I added that I got from Telerik documentation.
RadCalendar calendar = new RadCalendar();
calendar.ID = "myCalendar";
calendar.Enabled = true;
calendar.EnableViewState = true;
calendar.SelectedDate = DateTime.Now;
// calendar.RadControlsDir = "~/layouts/RadControls";
// populate your grid based on your requirements
Controls.Add(calendar);
I had an error with the first statement but solved it by adding the following References. Telerik.Web.UI and System.Web.Extensions. To find the first one I had to browse c:\Program Files\Telerik\RadControls for ASPNET AJAX Q3 2008\bin35. Telerik.Web.UI.dll was the only one in there so that doesn’t solve the next problem.
But I still can't get this line to work when I uncomment it. calendar.RadControlsDir = "~/layouts/RadControls";
This is the error I get when I uncomment the above line.
Error 1 'Telerik.Web.UI.RadCalendar' does not contain a definition for 'RadControlsDir' and no extension method 'RadControlsDir' accepting a first argument of type 'Telerik.Web.UI.RadCalendar' could be found (are you missing a using directive or an assembly reference?) D:\xxxx\Visual Studio 2008\RadCalendar1\RadCalendar1\RadCalendar1\RadCalendar1.cs 33 22 RadCalendar1