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

Forums / Developing with Sitefinity / Could not load type 'Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter'.

Could not load type 'Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter'.

10 posts, 0 answered
  1. Muneeb
    Muneeb avatar
    3 posts
    Registered:
    25 Feb 2009
    30 Mar 2009
    Link to this post
    Hi there,
    I am relatively new to ASP.Net but have been working with VC++, so pardon me if my query is of very low level.
    After looking at the features of sitefinity CMS, I really loved it and started working upon it.
    I created a sample site using community edition and now trying to deploy it at test-production environment hosted at IXWebhostings.
    I have copied the entire site from my dev machine to the folder at the site; and getting the following error:
    Could not load type 'Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter'.
    Source Error:

    Line 4:      <controlAdapters>
    Line 5:        <adapter controlType="System.Web.UI.HtmlControls.HtmlForm" adapterType="Telerik.Cms.Web.FormAdapter, Telerik.Cms" />
    Line 6: <adapter controlType="System.Web.UI.WebControls.RadioButtonList" adapterType="Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter" />Line 7:        <adapter controlType="System.Web.UI.WebControls.HyperLink" adapterType="Telerik.Cms.Web.UI.Adapters.HyperLinkControlAdapter" />
    Line 8:      </controlAdapters>


    I searched for help and thought of removing line 6 and 7 mentioned above. but then i get another error:
     

    Server Error in '/' Application.

    Could not load file or assembly 'Telerik.Cms.Engine' or one of its dependencies. The module was expected to contain an assembly manifest.

    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: System.BadImageFormatException: Could not load file or assembly 'Telerik.Cms.Engine' or one of its dependencies. The module was expected to contain an assembly manifest.

    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.

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Cms.Engine' 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].
    
    and the stack trace....

    Please help me solving the issue.
    Thanking you in anticipation.
  2. Muneeb
    Muneeb avatar
    3 posts
    Registered:
    25 Feb 2009
    30 Mar 2009
    Link to this post
    Further investigations suggested that file size of some dlls were different on dev and production machines.
    Solving this even didn't solve the problem, rather the following were raised:

    Could not load file or assembly 'Telerik.Cms.Engine' or one of its dependencies. The module was expected to contain an assembly manifest.

    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: System.BadImageFormatException: Could not load file or assembly 'Telerik.Cms.Engine' or one of its dependencies. The module was expected to contain an assembly manifest.

    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.

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Cms.Engine' could not be loaded.


    By the way, i have given rights to the bin and app_data folders. But, since I am deploying on IXwebhosting, where i don't have access to the folders/iis etc, i can't register any dlls to GAC etc.
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    31 Mar 2009
    Link to this post
    Hi Muneeb,

    If your hosting service is running in medium trust environment, could you please set your local installation to medium trust (in web.config).You can follow the instructions in the User Manual to get it working locally in medium trust.

    1. On your local installation open web.config and in system.web section add this line:
    <trust level="Medium" />
    This will insure that the website is running in medium trust, regardless is it on your local machine or remote server.

    2. Open the Sitefinity User Manual and follow the instructions on page 254, section name "Medium Trust Support".


    System.BadImageFormatException: possible reason for this error could be  when you are trying to run Sitefinity on a 64-bit platform attempts to load a DLL that does not support native 64-bit execution. If the application. Is your production based on 64 bit OS? To fix this, the application should run in 32-bit mode  and allowing the 32-bit dll to be accessed.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  4. Muneeb
    Muneeb avatar
    3 posts
    Registered:
    25 Feb 2009
    31 Mar 2009
    Link to this post
    Hi Ivan,
    Thanks for your reply and suggestions.
    First of all, I talked to the support guy and learned that they are hosting our site at 32bit Windows 2003 Standard edition. No luck for me about 64-bit dll.

    I also added the trust level to Medium as suggested by you and changed health monitoring to false.
    No luck this time too. The same error is there.

    Please tell me if you need further information in order to help me in this issue.
    Thank you very much for the help.
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    03 Apr 2009
    Link to this post
    Hi Muneeb,

    The issue is really strange. I am not sure what the exact problem could be if the above mentioned suggestion have not helped. Here is the MSDN explanation about this problem
    http://msdn.microsoft.com/en-us/library/k7137bfe(VS.80).aspx ( the file image is valid, so the first tip can be excluded.)

    Do you have problems running the website locally? If the project is running fine locally, then the problem is related to the host server. You can try excluding the adapter line from App_Browsers/Browser.File.browser and see whether something will be changed.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  6. Simon
    Simon avatar
    1 posts
    Registered:
    14 Feb 2009
    05 Mar 2010
    Link to this post
    Hi,
    I had the same problem and it was because I was missing some references.
    I had to add Telerik.Cms.Web.UI.dll and Telerik.Framework.dll to the references of my project.

    I hope that this will help you.
    Simon
  7. Sham
    Sham avatar
    27 posts
    Registered:
    08 Dec 2010
    18 Jan 2011
    Link to this post
    Hi,

    I migrated my 3.7 SP4 site to Sitefinity 4.0. But after migration i am getting error at following lines

    <

     

     

    adapter controlType="System.Web.UI.HtmlControls.HtmlForm" adapterType="Telerik.Cms.Web.FormAdapter, Telerik.Cms" />

     

    <

     

     

    adapter controlType="System.Web.UI.WebControls.RadioButtonList" adapterType="Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter" />

    in this thread it is metioned that once we remove these lines we will not get error but my question here is what is New API supported in 4.0 for Telerik.Cms.Web.FormAdapter and Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter

    Where i can find the mapping between old and New APIs?

     


    Regards

    Sham



  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Jan 2011
    Link to this post
    Hi Muneeb,

    Telerik.Cms.Web.FormAdapter and Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter are not supported and used in Sitefinity 4.0.

    The migration tool available on codeplex  transfers the data through service from Sitefinity 3.x to Sitefinity 4.0. The tool does not make API conversation and it does not have wrappers for migration custom code.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Sham
    Sham avatar
    27 posts
    Registered:
    08 Dec 2010
    18 Jan 2011
    Link to this post
    Hi Ivan,

    Thank you for quick reply. if we are not supporting old APIs i want to know what are new APIs that replaced old APIs so that i can make change to my Site accordingly. whether we have any mapping document that would suggest new APIs that i can use?

    regards

    Sham
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Jan 2011
    Link to this post
    Hello,

    Please take a look at our developer manual.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
10 posts, 0 answered