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

[Solved] RadSchedulerConfigurationSection and GAC reference

1 Answer 160 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 2
Chris asked on 31 Mar 2009, 10:40 AM
Hi, I am implimenting a multivalued resouce custom db provider base on your sample. The thing I have noticed is that I have to hvae the Telerik.Web.UI dll in the sites Bin directory for the config section in the web config file to work. All of the other components in the prject are happy with the GAC reference. 

This is the section that thorw an exception if the dll is not in the bin dir.

<sectionGroup name="telerik.web.ui">
<section name="radScheduler" type="Telerik.Web.UI.RadSchedulerConfigurationSection, Telerik.Web.UI, Version=2009.1.311.20, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/>
</sectionGroup>

The dll is also referenced in the asseblies section of the web.config file. see below for the asp exception data. you can recreate the error in your sample that was posted to this thread by just excluding the dll from the project, and making sure that it is in the GAC.


Thanks

Chris

Configuration Error

Description:An error occurred during the processing of a configuration file required toservice this request. Please review the specific error details below and modifyyour configuration file appropriately.

Parser Error Message: Anerror occurred creating the configuration section handler fortelerik.web.ui/radScheduler: Could not load file or assembly 'Telerik.Web.UI,Version=2009.1.311.20, PublicKeyToken=121fae78165ba3d4' or one of itsdependencies. The system cannot find the file specified.

SourceError:

Line 13: 		</sectionGroup>Line 14: 		<sectionGroup name="telerik.web.ui">Line 15: 			<section name="radScheduler" type="Telerik.Web.UI.RadSchedulerConfigurationSection, Telerik.Web.UI, Version=2009.1.311.20, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/>Line 16: 		</sectionGroup>Line 17: 	</configSections>

SourceFile: C:\Documents and Settings\Administrator\My Documents\Visual Studio2008\Projects\EC Webpart Library\ECWPControls\web.config    Line: 15

Assembly Load Trace: The following information can be helpful todetermine why the assembly 'Telerik.Web.UI, Version=2009.1.311.20,PublicKeyToken=121fae78165ba3d4' could not be loaded.

=== Pre-bind state information ===LOG: User = EC-DEV\AdministratorLOG: DisplayName = Telerik.Web.UI, Version=2009.1.311.20, PublicKeyToken=121fae78165ba3d4 (Partial)LOG: Appbase = file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio 2008/Projects/EC Webpart Library/ECWPControls/LOG: Initial PrivatePath = C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\EC Webpart Library\ECWPControls\binCalling assembly : (Unknown).===LOG: This bind starts in default load context.LOG: Using application configuration file: C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\EC Webpart Library\ECWPControls\web.configLOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/ecwpcontrols/32f1fab6/2cbcbe2b/Telerik.Web.UI.DLL.LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/ecwpcontrols/32f1fab6/2cbcbe2b/Telerik.Web.UI/Telerik.Web.UI.DLL.LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio 2008/Projects/EC Webpart Library/ECWPControls/bin/Telerik.Web.UI.DLL.LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio 2008/Projects/EC Webpart Library/ECWPControls/bin/Telerik.Web.UI/Telerik.Web.UI.DLL.LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/ecwpcontrols/32f1fab6/2cbcbe2b/Telerik.Web.UI.EXE.LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/ecwpcontrols/32f1fab6/2cbcbe2b/Telerik.Web.UI/Telerik.Web.UI.EXE.LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio 2008/Projects/EC Webpart Library/ECWPControls/bin/Telerik.Web.UI.EXE.LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio 2008/Projects/EC Webpart Library/ECWPControls/bin/Telerik.Web.UI/Telerik.Web.UI.EXE.




1 Answer, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 2
answered on 31 Mar 2009, 11:01 AM
HI,
       its OK i have found the problem. The reference in the sectionGroup  was missing the culture=nuetral section of tthe fully qualified  assembly name. Added that and all is working. Might be worth updating the documentation to make a point of this as if the dll is only in the GAC then  you need to be fully qualified to get the right reference.

By the way - thanks for such an amzing set of components and tools, they are the best out there.

Thanks

Chris
Tags
Scheduler
Asked by
Chris
Top achievements
Rank 2
Answers by
Chris
Top achievements
Rank 2
Share this question
or