Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Error occurred when EntityName occurred in IIS access

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Server error in "/" application.

Error parsing EntityName. Line 20, position 22.

Description: an unhandled exception occurred during the execution of the current Web request. Check the stack trace information for more information about the error and the source in the code that caused the error.

Exception details: System.Xml.XmlException: error parsing EntityName. Line 20, position 22.

Source error:

An unhandled exception was generated during the execution of the current Web request. You can use the following exception stack trace information to determine information about the cause and location of the exception.

Stack trace:

[XmlException: error parsing EntityName. Line 20, position 22.]

System.Xml.XmlTextReaderImpl.Throw (String res, String arg) + 195

System.Xml.XmlTextReaderImpl.ParseEntityName () + 3401923

System.Xml.XmlTextReaderImpl.ParseEntityReference () + 64

System.Xml.XmlTextReaderImpl.Read () + 7409741

System.Xml.XmlLoader.LoadNode (Boolean skipOverWhitespace) + 101

System.Xml.XmlLoader.LoadDocSequence (XmlDocument parentDoc) + 74

System.Xml.XmlDocument.Load (XmlReader reader) + 144

System.Xml.XmlDocument.Load (String filename) + 205

ZinEngine.Framework.ZinConfiguration..ctor (String path) + 112

Patrix.Web.PatrixConfig.Register (String path) + 1852

Patrix.Web.Global.Application_Start () + 507

[HttpException (0x80004005): error parsing EntityName. Line 20, position 22.]

System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode (HttpContext context, HttpApplication app) + 12584905

System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS (IntPtr appContext, HttpContext context, MethodInfo [] handlers) + 175

System.Web.HttpApplication.InitSpecial (HttpApplicationState state, MethodInfo [] handlers, IntPtr appContext, HttpContext context) + 304

System.Web.HttpApplicationFactory.GetSpecialApplicationInstance (IntPtr appContext, HttpContext context) + 404

System.Web.Hosting.PipelineRuntime.InitializeApplication (IntPtr appContext) + 475

[HttpException (0x80004005): error parsing EntityName. Line 20, position 22.]

System.Web.HttpRuntime.FirstRequestInit (HttpContext context) + 12601936

System.Web.HttpRuntime.EnsureFirstRequestInit (HttpContext context) + 159

System.Web.HttpRuntime.Proce***equestNotificationPrivate (IIS7WorkerRequest wr, HttpContext context) + 12441597

Version Information: Microsoft .NET Framework version: 4.0.30319; ASP.NET version: 4.0.30319.34009

Query the reason to know that the above is caused by special characters in the password of DB in the configuration file.

The way to do this is to replace the code or change the password, preferably by changing a password that does not contain special characters

The solution of reading xml file "error in parsing EntityName"

When it comes to xml and xslt programming, we often encounter the prompt of "error in analyzing EntityName". This is not a program error, but is caused by some special symbols used in the xml file.

The XML node cannot contain these special characters, "&", "otherwise the XML will report an error when parsing. If the node content in your configuration file contains the following special symbols, please replace it with the corresponding replacement code.

Special character special meaning substitution coding >

>

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report