「/」應用程序中的伺服器錯誤。

缺少根元素。

說明: 執行當前 Web 請求期間,出現未經處理的異常。請檢查堆棧跟蹤信息,以了解有關該錯誤以及代碼中導致錯誤的出處的詳細信息。

異常詳細信息: System.Xml.XmlException: 缺少根元素。

源錯誤:

執行當前 Web 請求期間生成了未經處理的異常。可以使用下面的異常堆棧跟蹤信息確定有關異常原因和發生位置的信息。

堆棧跟蹤:


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

[InvalidOperationException: XML 文檔(0, 0)中有錯誤。]
   System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) +859
   PowerEasy.Foundation.Config.BaseConfig`1.Deserialize(Type configType, String filePath) +214
   PowerEasy.Foundation.Web.PowerCache.Get(String key, Func`1 getValue, String dependenciesFilePath, Int32 minutes, CacheItemRemovedCallback onRemoveCallback, Boolean isAbsoluteExpiration, CacheItemPriority priority) +485
   PowerEasy.Foundation.Config.BaseConfig`1.InitConfig() +416
   PowerEasy.Foundation.Config.BaseConfig`1.get_Instance() +352
   PowerEasy.Modules.AttackDefense.AttackDefenseConfigInit.PostApplicationStart() +83

[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) +146
   WebActivatorEx.BaseActivationMethodAttribute.InvokeMethod() +102
   WebActivatorEx.ActivationManager.RunActivationMethods(Boolean designerMode) +718
   WebActivatorEx.StartMethodCallingModule.Init(HttpApplication context) +125
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +618
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +402
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343

[HttpException (0x80004005): 調用的目標發生了異常。]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +539
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +125
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +731


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