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

Forums / Bugs & Issues / Runtime error: Unable to load requested types

Runtime error: Unable to load requested types

9 posts, 0 answered
  1. Mikael Kleinwort
    Mikael Kleinwort avatar
    78 posts
    Registered:
    17 May 2004
    21 Feb 2009
    Link to this post
    After upgrading to 3.6 hotfix I occassionally receive this error in the SF user interface:

    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    After reloading the page, usually the error disappears and the page loads fine. Any way to avoid this?

    regards, Mikael
  2. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    21 Feb 2009
    Link to this post
    Hi,
    Same issue after Login i have same problem. using dev. version 1870 from black project.
    Server Error in '/Project1870' Application.  
    --------------------------------------------------------------------------------  
     
    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.   
    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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.  
     
    Source Error:   
     
     
    Line 267:            foreach (IWebModule module in ModuleManager.GetWebModulesValues())  
    Line 268:            {  
    Line 269:                if (module is SecuredModule && ((SecuredModule)module).CanCreate())  
    Line 270:                    webModules.Add(module);  
    Line 271:            }  
       
     
    Source File: g:\DELL USERS\XX\Files\Visual Studio 2005 WEB\WebSites\XX_V36_Net2\Web1870\Sitefinity\Admin\Default.aspx.cs    Line: 269   
     
    Stack Trace:   
     
     
    [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]  
       System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) +0  
       System.Reflection.Assembly.GetTypes() +96  
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.CreateInstance(String objTypeName) +106  
     
    [ProxyInstantiationException: An error occured while instantiating the proxy type.]  
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.CreateInstance(String objTypeName) +384  
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +231  
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +167  
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +551  
       Telerik.Notifications.Services.MailingServiceProxy..ctor() +30  
       Telerik.Notifications.Newsletters.DataManager.OnInitialized() +101  
       Telerik.ManagerBase`1.Initialize() +569  
       Telerik.ManagerBase`1..ctor(String providerName) +42  
       Telerik.ManagerBase`1..ctor() +30  
       Telerik.Notifications.Newsletters.DataManager..ctor(String providerName) +30  
       Telerik.Notifications.Newsletters.DataManager..ctor() +30  
       Telerik.Notifications.Newsletters.DataManager.get_Providers() +60  
       Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots() +94  
       Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots() +28  
       Telerik.Security.Permissions.SecuredModule.CanCreate() +88  
       Admin_Default.Page_Load(Object sender, EventArgs e) in g:\XX USERS\RPIERRE\Mes documents\Visual Studio 2005 WEB\WebSites\XX_V36_Net2\XX1870\Sitefinity\Admin\Default.aspx.cs:269  
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +13  
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43  
       System.Web.UI.Control.OnLoad(EventArgs e) +80  
       Telerik.Cms.Web.CmsPageBase.OnLoad(EventArgs e) +66  
       Telerik.Cms.Web.AdminPage.OnLoad(EventArgs e) +42  
       Admin_Default.OnLoad(EventArgs e) in g:\XX\XX\XX\Visual Studio 2005 WEB\WebSites\XX_V36_Net2\VistaInmo1870\Sitefinity\Admin\Default.aspx.cs:69  
       System.Web.UI.Control.LoadRecursive() +49  
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3749  
     
       
     



  3. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Feb 2009
    Link to this post
    Hello,

    Do you have an old assembly in the directory Sitefinity\ServiceAssemblies? You might try to remove the assembly and to run the web site again. If there is no such assembly. If there is no assembly there, then it could not be created. You may try to run the project in full trust and check if that will make any difference.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. Mikael Kleinwort
    Mikael Kleinwort avatar
    78 posts
    Registered:
    17 May 2004
    25 Feb 2009
    Link to this post
    Hello Georgi,

    no old assemblies in the service folder. I deleted all old assemblies in this folder as instructed in the patch information. A new assembly "3889AC4AF542BAC3C62ABB154E78FEA8.dll" has been created there.

    Any other hints?

    regads, Mikael
  5. Mikael Kleinwort
    Mikael Kleinwort avatar
    78 posts
    Registered:
    17 May 2004
    28 Feb 2009
    Link to this post
    The issue seemed to have gone away after I deinstalled SF 3.6 completely and doing a fresh clean new install of SF 3.6 hotfix without upgrading from SF 3.5

    Regards, Mikael
  6. Jay
    Jay avatar
    25 posts
    Registered:
    12 May 2008
    10 May 2009
    Link to this post
    Hi,

    Deleting the service assembly and recreating it resolved the issue for me.

    Thanks,

    Jay
  7. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    11 May 2009
    Link to this post
    Hello,

    We have improved the handling of the web service in 3.6 hotfix.
    I am really glad it worked for you, Mikael. Jay, we still suggest you upgrading to the newest version.

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Venkat
    Venkat avatar
    105 posts
    Registered:
    20 Nov 2008
    20 Jul 2009
    Link to this post
    I created a new web site using 3.6 .

    then I replaced all files and folders except bin and web.config with my old 3.5 file system.

    Then the client side worked properly but the admin side not opened.To remove this error ,I created another web site using 3.6 and copied the folder Admin/ControlTemplates and pasted it in the first project.

    at last my website working fine.but I am not able to open the News letter module.except this module all modules are working fine and i am happy with that.
    While trying to open the news letters module i am getting the same error

    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    I removed the dll from the folder ServiceAssemblies but there is no use.And I dont know which causing the exception.
    Even debugging the application can not help me.

    Is it the correct way to upgrade an application from 3.5 to 3.6.

    any way its working fine for all modules except this news letters module.Can any one please help me to solve this .
  9. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Jul 2009
    Link to this post
    Hello Venkat,

    When you removed the assembly, did you notice if a new one is generated? This is possible in Full Trust only. If you are running in Medium trust, please run the application locally in full trust, take the generated assembly and upload it to the live site.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
9 posts, 0 answered