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

RadCalendar in Web Part

4 Answers 174 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 24 Nov 2008, 08:21 PM

4 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 25 Nov 2008, 09:30 AM
Hello Jim,

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.
0
Jim
Top achievements
Rank 1
answered on 25 Nov 2008, 02:32 PM

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].

 

0
Sasa Glamatovic
Top achievements
Rank 1
answered on 05 Dec 2008, 01:30 PM
Try installing .Net Ajax?! from http://ajax.asp.net
0
Jim
Top achievements
Rank 1
answered on 05 Dec 2008, 01:38 PM
I'm working in a lab environment with SharePoint installed which I did not create. We have Visual Studio.2008 installed but for some reason we only seems to have ASP.NET and .NET Framework versions 1.1 and 2.0. I can't find 3.5 anywhere even thought it normally gets installed with Visual Studio.2008. I know the controls were created for the 3.5 versions. I'm going to try testing in another environment to see if I can solve this.

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

Tags
Calendar
Asked by
Jim
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Jim
Top achievements
Rank 1
Sasa Glamatovic
Top achievements
Rank 1
Share this question
or