+1-888-365-2779
Try Now
More in this section

Forums / Deployment / Cannot Load the Telerik.Cms.dll

Cannot Load the Telerik.Cms.dll

13 posts, 0 answered
  1. Palmer Palmer
    Palmer Palmer avatar
    8 posts
    Registered:
    30 Dec 2009
    18 Jan 2010
    Link to this post
    I have copied the CMS blank project to my hosting provider.  Found all the information I could about the following error and still am unable to run the application.

    After much following the instructions from several other threads I run into the same error repeatedly.

    ____________________________________________________________________________________________


    Server Error in '/Sitefinity' Application.

    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 'Telerik.Cms' or one of its dependencies. The system cannot find the file specified. (C:\Sites\Single38\ppalmer\webroot\web.config line 140)

    Source Error: 

    Line 138:		<httpModules>
    Line 139:			<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Line 140:			<add name="Cms" type="Telerik.Cms.Web.CmsHttpModule, Telerik.Cms"/>
    Line 141:			<!-- Http Module for extension mappings in Library module.-->
    Line 142:			<!--<add name="LibraryModule" type="Telerik.Libraries.LibraryHttpModule, Telerik.Libraries"/>-->

    Source File: C:\Sites\Single38\ppalmer\webroot\web.config    Line: 140 


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.4028



  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Jan 2010
    Link to this post
    Hi Palmer Palmer,

    Please check whether you have Telerik.Cms.dll located in your bin folder. The error says that the dll could not be found. Make sure that ASP Worker process has access over your bin folder.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Palmer Palmer
    Palmer Palmer avatar
    8 posts
    Registered:
    30 Dec 2009
    18 Jan 2010
    Link to this post
    Thanks for the quick response and the patience to deal with this issue yet again.

    I've checked with my Hosting provider and confirmed that the bin directory is writable by the ASPNET user account and recopied my bin folder a couple of times to ensure that all the relevant files are there. 

    I've just confirmed that that the Telerik.Cms.dll file is in the bin folder.

    Any other suggestions?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Jan 2010
    Link to this post
    Hello Palmer Palmer,

    The error says that the dll could not be found. Make sure that it is not locked by any other process and you have the right version in your bin. You could also check whether the website is not somehow looking for Telerik.Cms.dll in your server GAC instead of the bin. I belive that the problem is somewhere in your files or somehow the dll could not be loded due to some server issue.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Palmer Palmer
    Palmer Palmer avatar
    8 posts
    Registered:
    30 Dec 2009
    18 Jan 2010
    Link to this post
    Some of these suggestions cannot be verified.  I've asked the tech support people at Brinkster to assist and the answers I've gotten basically state that the host is configured to use version 3.5 of dotNET and the host is configured to point to the bin folder for the files.

    I'm not sure what version of Telerik.Cms I should have but .NET Reflector is reporting

    I should point out that I'm using MySQL as the database.

    Assembly Telerik.Cms, Version 3.7.2057.3
    and it references
    mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Nolics.Engine.v4.2, Version=4.2.2522.4, Culture=neutral, PublicKeyToken=c50af72fde0670b7
    System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089



    System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Telerik.Cms.Web.UI, Version=3.7.2057.3, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
    Telerik.DataAccess, Version=3.7.2057.3, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
    Telerik.FileManager, Version=3.7.2057.3, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
    Telerik.Framework, Version=3.7.2057.3, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
    Telerik.Personalization, Version=3.7.2057.3, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
    Telerik.Rss, Version=3.7.2057.3, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
    Telerik.Security, Version=3.7.2057.3, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
    Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4



    I've double checked for the files that are bold above and am convinced that they
    are all there.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Jan 2010
    Link to this post
    Hello Palmer Palmer,

    This is Sitefinity 3.7 SP2 Community Edition. Does the problem persists on your local host?

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Palmer Palmer
    Palmer Palmer avatar
    8 posts
    Registered:
    30 Dec 2009
    19 Jan 2010
    Link to this post
    The short answer is no.

    In fact I had to copy the entire web.config in order to get it to work locally.
  8. Palmer Palmer
    Palmer Palmer avatar
    8 posts
    Registered:
    30 Dec 2009
    19 Jan 2010
    Link to this post

    I don't know what to say at this point but I'm no longer getting this error. 

    Therefore I assume that one or more of the files were locked, since I've not changed anything on the site.  Or maybe an adjustment was made by the brinkster team.  Hopefully time will reveal the secret ingredient.

    The error I'm getting now appears to be more in line with what I would expect.

    I'm using MySQL Server version: 5.0.51a-community-nt from my hosting provider.

    In order to register the site locally, I had to use a different version of the MySQL.Data.dll (downloaded from the Sitefinity website forum version 5.0.7.0).
    ________________________________________________________________________________________


     

     

    Server Error in '/Sitefinity' Application.

    Can't load driver Telerik.DataAccess.MySQLProvider, Telerik.MySQLProvider from assembly .  Check driver and driverAttribute values from application config file.

    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: Nolics.ORMapper.Base.NolnetException: Can't load driver Telerik.DataAccess.MySQLProvider, Telerik.MySQLProvider from assembly .  Check driver and driverAttribute values from application config file.

    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:

    [NolnetException: Can't load driver Telerik.DataAccess.MySQLProvider, Telerik.MySQLProvider from assembly .  Check driver and driverAttribute values from application config file.]
       Telerik.DataAccess.NolicsHelper.SetConnection(String connectionName, String providerName) +669
       Telerik.Cms.Data.DefaultProvider.Initialize(String name, NameValueCollection config) +214
       Telerik.ManagerBase`1.InstantiateProvider(ProviderSettings providerSettings, Type providerType) +673
       Telerik.ManagerBase`1.InstantiateProvider(ProviderSettings providerSettings) +91
       Telerik.ManagerBase`1.SetProvider(String providerName) +203
       Telerik.ManagerBase`1..ctor(String providerName) +89
       Telerik.ManagerBase`1..ctor() +11
       Telerik.Cms.Web.UrlHelper.Initialize(CmsHttpModule cmsModule) +38
       Telerik.Cms.Web.CmsHttpModule.Init(HttpApplication context) +86
       System.Web.HttpApplication.InitModulesCommon() +65
       System.Web.HttpApplication.InitModules() +43
       System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +729
       System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +298
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +289
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.4028

  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    19 Jan 2010
    Link to this post
    Hello Palmer Palmer,

    You have to use MySql.Data.dll, Version=5.0.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d with your project. The dllsshould be located in your bin. If your host has the same version of MySql.Data.dll in the GAC you may create an reference from there. Otherwise you could create bindingRedirection in your web.config file.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  10. Palmer Palmer
    Palmer Palmer avatar
    8 posts
    Registered:
    30 Dec 2009
    19 Jan 2010
    Link to this post
    Here's my attempt at an assembly binding redirect, let me know if this is even close.

     
        <runtime> 
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">  
                <dependentAssembly> 
                    <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>  
                    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>  
                </dependentAssembly> 
                <dependentAssembly> 
                    <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>  
                    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>  
                </dependentAssembly> 
          <!--MySql.Data, Version=5.0.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d--> 
          <dependentAssembly> 
            <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" /> 
            <bindingRedirect oldVersion="6.0.3.0" newVersion="5.0.7.0"/>  
            <codeBase version="5.0.7.0" href="http://www.portmore.com/bin/Telerik.MySQLProvider.dll"/>  
          </dependentAssembly>        
        </assemblyBinding> 
        </runtime> 
     
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    19 Jan 2010
    Link to this post
    Hello Palmer Palmer,

    Please take a look at this MSDN article. Just to let you know RadEditor supports FormatCodeBlock that you can use when you submit any code.


    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  12. Palmer Palmer
    Palmer Palmer avatar
    8 posts
    Registered:
    30 Dec 2009
    20 Jan 2010
    Link to this post
    Thanks much for your advice.

    As it turns out my hosting provider made changes.  They decided to make the bin directory "sitefinity/bin" instead of the /bin directory and copied only some of the files to that directory.

    I've requested that they make the webroot a virtual directory and keep /bin as the directory.

    I'll keep hitting at this problem from the other end as it would appear that my problems are centered currently around my host provider for the time being.
  13. Palmer Palmer
    Palmer Palmer avatar
    8 posts
    Registered:
    30 Dec 2009
    31 Jan 2010
    Link to this post
    Thanks so much for all your support, my Sitefinity site is up and running, the problems were configuration issues due to my hosting company.

    I pointed out basic facts like:
    1).  I need to operate from the webroot directory
    2).  The /bin directory needs to be in the webroot
    3).  The ASP.NET user account must have full permissions on the relevant directories.
    4).  The root directory as well as all the Sitefinity sub-directories must not be application directories.

Register for webinar
13 posts, 0 answered