Sitefinity 4.2 - 无法加载一种或多种请求的类型
我正在尝试启动 Sitefinity 4.2 项目,但在执行此操作时出现此错误。
“/kadytv”应用程序中的服务器错误。
无法加载一种或多种请求的类型。检索 LoaderExceptions 属性以获取更多信息。
描述:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。
异常详细信息:System.Reflection.ReflectionTypeLoadException:无法加载一种或多种请求的类型。检索 LoaderExceptions 属性以获取更多信息。
来源错误:
<块引用>执行当前 Web 请求期间生成未处理的异常。有关异常来源和位置的信息可以使用下面的异常堆栈跟踪来识别。
堆栈跟踪:
<块引用>[ReflectionTypeLoadException:无法加载一种或多种请求的类型。检索 LoaderExceptions 属性以获取更多信息。] DynamicModule.ns.Wrapped_OpenAccessMetaDataProvider_aec2ba29742646bdae02fcb21a4945ef.Initialize(字符串providerName,NameValueCollection配置,类型managerType)+405 Telerik.Sitefinity.Data.ManagerBase
1.InstantiateProvider(IDataProviderSettingsproviderSettings,类型providerType,ExceptionPolicyName策略,ManagerBase
1经理)+2005 Telerik.Sitefinity.Data.ManagerBase1.InstantiateProvider(IDataProviderSettingsproviderSettings,ExceptionPolicyName策略,ManagerBase
1经理)+74 Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(字符串提供商名称,字符串交易名称)+510[TargetInitationException:调用目标已引发异常。] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0 System.RuntimeType.CreateInstanceSlow(布尔publicOnly,布尔skipCheckThis,布尔fillCache)+117 System.RuntimeType.CreateInstanceDefaultCtor(布尔publicOnly,布尔skipVisibilityChecks,布尔skipCheckThis,布尔fillCache)+247 System.Activator.CreateInstance() +88 Telerik.Sitefinity.Data.ManagerBase`1.GetManager(字符串提供商名称,字符串交易名称) +123 Telerik.Sitefinity.Services.SystemManager.Initialize() +232 Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes(RouteCollection 路线)+293 Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +386 Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication 上下文)+114 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext,HttpContext上下文,MethodInfo []处理程序)+575 System.Web.HttpApplication.InitSpecial(HttpApplicationState状态,MethodInfo []处理程序,IntPtr appContext,HttpContext上下文)+352 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext,HttpContext上下文)+407 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)+375
[HttpException (0x80004005):调用目标已引发异常。] System.Web.HttpRuntime.FirstRequestInit(HttpContext上下文)+11642112 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext上下文)+141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext上下文)+4865877
我使用空项目测试了 4.2 安装,一切正常,但这个自定义 4.2 项目由于某种原因不满意。
其他人有这方面的经验并且能够解决它。
I am trying to pull up a Sitefinity 4.2 project and get this error when doing so.
Server Error in '/kadytv' 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_aec2ba29742646bdae02fcb21a4945ef.Initialize(String providerName, NameValueCollection config, Type managerType) +405
Telerik.Sitefinity.Data.ManagerBase1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase
1 manager) +2005
Telerik.Sitefinity.Data.ManagerBase1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase
1 manager) +74
Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +510[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) +117
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +247
System.Activator.CreateInstance() +88
Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +123
Telerik.Sitefinity.Services.SystemManager.Initialize() +232
Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes(RouteCollection routes) +293
Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +386
Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +114
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +575
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11642112
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4865877
I tested the 4.2 install with an empty project and all works ok but this custom 4.2 project is not happy for some reason.
Anyone else have experience with this and able to resolve it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能会发现Microsoft Connect 上的此论坛主题很有用。
我有一种感觉,你的问题与实体框架 DLL 有关;因此,请尝试将您的
本地副本
设置为true
。如果您找不到如何执行此操作,请编辑
csproj
文件并找到False
行并设置为true.
You might find this forum thread on Microsoft Connect useful.
I have a feeling that your problem is related to the entity Framework DLL's; so try setting your
Local Copy
totrue
.If you can't find how to do this, edit your
csproj
file and find<Private>False</Private>
line and set totrue
.