More in this section

Forums / Developing with Sitefinity / I create a new project and add usercontrol, then system error occured,

I create a new project and add usercontrol, then system error occured,

3 posts, 0 answered
  1. Sarah
    Sarah avatar
    8 posts
    Registered:
    16 Nov 2010
    01 Jul 2011
    Link to this post
     

    Server Error in '/' 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:

    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:

    [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] DynamicModule.ns.Wrapped_OpenAccessMetaDataProvider_795620937c2c453bb61ac68e254c1752.Initialize(String providerName, NameValueCollection config, Type managerType) +283 Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +2233 Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +117 Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +691 Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +249 Telerik.Sitefinity.Data.ManagerBase`1..ctor() +37 Telerik.Sitefinity.Data.Metadata.MetadataManager..ctor() +28 [TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241 System.Activator.CreateInstance() +103 Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +123 Telerik.Sitefinity.Data.ManagerBase`1.GetManager() +72 Telerik.Sitefinity.Data.Metadata.MetadataManager.GetManager() +27 Telerik.Sitefinity.Services.SystemManager.Initialize() +354 Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes(RouteCollection routes) +324 Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +286 Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +112 System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10 System.Web.HttpApplication.InitModulesCommon() +172 System.Web.HttpApplication.InitModules() +43 System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828 System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304 System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327 


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
  2. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    01 Jul 2011
    Link to this post
    Hi Sarah,

    Take a look at Josh's blog post. Probably, this is your case...

    See the Error section:
    Errors
     
    While developing your module, you may encounter the error “Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information”.
     
    This problem can occur if you are modifying existing classes in your project as they may be cached in Sitefinity.
     
    Rebuilding and restarting your website, as well as deleting your browser cache should resolve this issue

    I hope this helps,
    Anton
  3. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    01 Jul 2011
    Link to this post
    Hi Sarah,

    Please check the following thread which contains useful information regarding the issue you are experiencing.

    All the best,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
3 posts, 0 answered