“/”应用程序中的服务器错误。

缺少根元素。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Xml.XmlException: 缺少根元素。

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[XmlException: 缺少根元素。]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +88
   System.Xml.XmlTextReaderImpl.ParseDocumentContent() +1560
   System.Xml.XmlReader.MoveToContent() +70
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderAttackDefenseConfig.Read6_AttackDefenseConfig() +28

[InvalidOperationException: XML 文档(0, 0)中有错误。]
   System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) +819
   PowerEasy.Foundation.Config.BaseConfig`1.Deserialize(Type configType, String filePath) +190
   PowerEasy.Foundation.Web.PowerCache.Get(String key, Func`1 getValue, String dependenciesFilePath, Int32 minutes, CacheItemRemovedCallback onRemoveCallback, Boolean isAbsoluteExpiration, CacheItemPriority priority) +135
   PowerEasy.Foundation.Config.BaseConfig`1.InitConfig() +422
   PowerEasy.Foundation.Config.BaseConfig`1.get_Instance() +208
   PowerEasy.Modules.AttackDefense.AttackDefenseConfigInit.PostApplicationStart() +59

[TargetInvocationException: 调用的目标发生了异常。]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +260
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +142
   WebActivatorEx.BaseActivationMethodAttribute.InvokeMethod() +81
   WebActivatorEx.ActivationManager.RunActivationMethods(Boolean designerMode) +699
   WebActivatorEx.StartMethodCallingModule.Init(HttpApplication context) +122
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +570
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +165
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +368
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +329

[HttpException (0x80004005): 调用的目标发生了异常。]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +523
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +118
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +704


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.6.1590.0