[quoted text, click to view] "Priya Lakshminarayanan" wrote:
> Can you try a smaller code sample by adding the UIP schema directly into a
> XmlSchemaSet and check what errors/exception you get?
>
> XmlSchemaSet schemas = new XmlSchemaSet();
> schemas.Add(null, "UipConfigSchema.xsd");
> schemas.Compile();
Sorry for the delay in replying. I did as you advised and the exception
message is below.
System.Xml.Schema.XmlSchemaException was unhandled
Message="Wildcard '##any' allows element 'statePersistenceProvider', and
causes the content model to become ambiguous. A content model must be formed
such that during validation of an element information item sequence, the
particle contained directly, indirectly or implicitly therein with which to
attempt to validate each item in the sequence in turn can be uniquely
determined without examining the content or attributes of that item, and
without any information about the items in the remainder of the sequence."
Source="System.Xml"
StackTrace:
at System.Xml.Schema.XmlSchemaSet.InternalValidationCallback(Object
sender, ValidationEventArgs e)
at
System.Xml.Schema.BaseProcessor.SendValidationEvent(XmlSchemaException e,
XmlSeverityType severity)
at System.Xml.Schema.Compiler.CompileElement(XmlSchemaElement xe)
at
System.Xml.Schema.Compiler.CompileParticleElements(XmlSchemaComplexType
complexType, XmlSchemaParticle particle)
at
System.Xml.Schema.Compiler.CompileParticleElements(XmlSchemaComplexType
complexType, XmlSchemaParticle particle)
at
System.Xml.Schema.Compiler.CompileComplexTypeElements(XmlSchemaComplexType
complexType)
at System.Xml.Schema.Compiler.Compile()
at System.Xml.Schema.Compiler.Execute(XmlSchemaSet schemaSet,
SchemaInfo schemaCompiledInfo)
at System.Xml.Schema.XmlSchemaSet.Compile()
at UIPAB_Sandbox.MainClass.Main(String[] args) in D:\Visual Studio
2005\Projects\UIPAB_Sandbox\UIPAB_Sandbox\MainClass.vb:line 13
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
I have also identified a forum thread that appears to address this problem
(explained as something to do with .NET 2.0 handling XML differently to .NET
1.1 which the UIPAB was built on) and offers a solution at
http://forums.asp.net/713774/ShowPost.aspx Implementing the solution prevents the original exception.
I would still welcome your comments or insights regarding this issue.
Hopefully, one day soon this *important* application block will be properly
ported to the .NET 2.0 Framework (how about it, Microsoft?!!)