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