Server Error in '/' Application.

Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 23, position 7.

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.Xml.XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 23, position 7.

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:


[XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 23, position 7.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +91
   System.Xml.XmlTextReaderImpl.ParseAttributes() +427
   System.Xml.XmlTextReaderImpl.ParseElement() +878
   System.Xml.XmlTextReaderImpl.ParseElementContent() +552
   NLog.Config.NLogXmlElement.Parse(XmlReader reader, Boolean nestedElement) +304
   NLog.Config.NLogXmlElement.Parse(XmlReader reader, Boolean nestedElement) +264
   NLog.Config.XmlLoggingConfiguration.Initialize(XmlReader reader, String fileName, Boolean ignoreErrors) +143

[NLogConfigurationException: Exception when parsing C:\inetpub\wwwroot\33alertsnet\NLog.config. ]
   NLog.Config.XmlLoggingConfiguration.Initialize(XmlReader reader, String fileName, Boolean ignoreErrors) +589
   NLog.Config.LoggingConfigurationFileLoader.LoadXmlLoggingConfiguration(XmlReader xmlReader, String configFile, LogFactory logFactory) +497
   NLog.Config.LoggingConfigurationFileLoader.LoadXmlLoggingConfigurationFile(LogFactory logFactory, String configFile) +110
   NLog.Config.LoggingConfigurationFileLoader.TryLoadLoggingConfiguration(LogFactory logFactory, String configFile, LoggingConfiguration& config) +573
   NLog.Config.LoggingConfigurationFileLoader.TryLoadFromFilePaths(LogFactory logFactory) +133
   NLog.Config.LoggingConfigurationWatchableFileLoader.Load(LogFactory logFactory) +43
   NLog.LogFactory.get_Configuration() +173
   NLog.LogFactory.GetLoggerThreadSafe(String name, Type loggerType) +281
   NLog.LogManager.GetCurrentClassLogger() +93
   AlertNotificationSystem.Log.LoggerManager..cctor() in E:\Projects\Alert Notification System Admin\AlertNotificationSystem\AlertNotificationSystem.Log\LoggerManager.cs:12

[TypeInitializationException: The type initializer for 'AlertNotificationSystem.Log.LoggerManager' threw an exception.]
   AlertNotificationSystem.Log.LoggerManager.LogError(String message, Exception ex, Object[] values) in E:\Projects\Alert Notification System Admin\AlertNotificationSystem\AlertNotificationSystem.Log\LoggerManager.cs:22
   AlertNotificationSystem.ExceptionHandler.ErrorHandler.OnException(ExceptionContext filterContext) in E:\Projects\Alert Notification System Admin\AlertNotificationSystem\AlertNotificationSystem\Error\ErrorHandler.cs:19
   System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList`1 filters, Exception exception) +186
   System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult) +166
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +43
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +651
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +134


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0