Server Error in '/' Application.

'.', hexadecimal value 0x00, is an invalid character. Line 96, position 25.

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: '.', hexadecimal value 0x00, is an invalid character. Line 96, position 25.

Source Error:


Line 52:             Dim reader As StreamReader = File.OpenText(filename)
Line 53:             Dim serializer As XmlSerializer = New XmlSerializer(GetType(AppConfigurationData))
Line 54:             Dim data As AppConfigurationData = CType(serializer.Deserialize(reader),AppConfigurationData)
Line 55:             reader.Close()
Line 56:             Return data

Source File: E:\web\xiglacom000\htdocs\App_Code\XIGLA.AbsoluteNewsletter.vb    Line: 54

Stack Trace:


[XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 96, position 25.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +73
   System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) +81
   System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args) +24
   System.Xml.XmlTextReaderImpl.ParseNumericCharRefInline(Int32 startPos, Boolean expand, StringBuilder internalSubsetBuilder, Int32& charCount, EntityType& entityType) +5232744
   System.Xml.XmlTextReaderImpl.ParseCharRefInline(Int32 startPos, Int32& charCount, EntityType& entityType) +81
   System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars) +711
   System.Xml.XmlTextReaderImpl.ParseText() +94
   System.Xml.XmlTextReaderImpl.ParseElementContent() +344
   System.Xml.XmlTextReaderImpl.Read() +45
   System.Xml.XmlTextReader.Read() +15
   System.Xml.XmlReader.ReadElementString() +65
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderAppConfigurationData.Read2_AppConfigurationData(Boolean isNullable, Boolean checkType) +5691
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderAppConfigurationData.Read3_AppConfigurationData() +99

[InvalidOperationException: There is an error in XML document (96, 25).]
   System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) +695
   System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) +106
   XIGLA.AbsoluteNewsletter.AppConfiguration.LoadSettings(String filename) in E:\web\xiglacom000\htdocs\App_Code\XIGLA.AbsoluteNewsletter.vb:54
   XIGLA.AbsoluteNewsletter.AppConfiguration.get_Settings() in E:\web\xiglacom000\htdocs\App_Code\XIGLA.AbsoluteNewsletter.vb:43
   XIGLA.AbsoluteNewsletter.AbsoluteNewsletter..ctor() in E:\web\xiglacom000\htdocs\App_Code\XIGLA.AbsoluteNewsletter.vb:1033
   ASP.absolutenl_demo_user_manage_aspx..ctor() in E:\web\xiglacom000\htdocs\absolutenl\demo\user-manage.aspx:3
   __ASP.FastObjectFactory_app_web_nrfqia5d.Create_ASP_absolutenl_demo_user_manage_aspx() +52
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +58
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +114
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +32
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +65
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +193
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +193
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


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