4

我已经毫无问题地将我的 ASP.Net C# 应用程序部署到了其他三个系统。我没有更改应用程序代码,甚至没有更改安装程序。我还检查并确保我的 IIS 10 设置和连接都设置得尽可能靠近其他环境。应用程序成功运行的系统/环境之一是运行 Windows Server 2008 和 IIS 7,而另外两个运行 Windows 10 和 IIS 10。应用程序失败的系统是运行 Windows Server 2019 和 IIS 10。不明白为什么我会收到此错误,当我没有更改除了运行我的应用程序的系统和服务器之外的任何内容时:

XmlValidator::ValidateXml() - Error Validating xml - System.Exception:  Validation error: The element 'systemBalances' in namespace 'http://www.alpha.com/system/schemas/v1.0/' has invalid child element 'accessible' in namespace 'http://www.alpha.com/system/schemas/v1.0/'.

   at ABC.Common.XMLValidators.XmlValidator.ValidationHandler(Object sender, ValidationEventArgs args) in C:\XYZ Src\Dev\ABC\ABC[Dev]\AlphaWebServices\ABC.Common\XmlValidator.cs:line 134
   at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(ValidationEventHandler eventHandler, Object sender, XmlSchemaValidationException e, XmlSeverityType severity)
   at System.Xml.Schema.XmlSchemaValidator.ElementValidationError(XmlQualifiedName name, ValidationState context, ValidationEventHandler eventHandler, Object sender, String sourceUri, Int32 lineNo, Int32 linePos, XmlSchemaSet schemaSet)
   at System.Xml.Schema.XmlSchemaValidator.ValidateElementContext(XmlQualifiedName elementName, Boolean& invalidElementInContext)
   at System.Xml.Schema.XmlSchemaValidator.ValidateElement(String localName, String namespaceUri, XmlSchemaInfo schemaInfo, String xsiType, String xsiNil, String xsiSchemaLocation, String xsiNoNamespaceSchemaLocation)
   at System.Xml.XsdValidatingReader.ProcessElementEvent()
   at System.Xml.XsdValidatingReader.ProcessReaderEvent()
   at System.Xml.XsdValidatingReader.Read()
   at ABC.Common.XMLValidators.XmlValidator.ValidateXml(String sXmlToValidate, JKLClass AlphaClass, Int32 hostId, String egmId, String& outXmlMsg) in C:\BMS Src\Dev\ABC\ABC[Dev]\AlphaWebServices\ABC.Common\XmlValidator.cs:line 34

我不确定这是否重要,但我的应用程序成功运行的其他三个系统都托管在同一台服务器上,而出错的系统位于与最初三个环境不同的服务器上。

4

0 回答 0