EDN Admin
Well-known member
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
am developing a library (VS 2010, assembly targeted for AnyCPU) and I am getting the following error while stepping over the constructor of XmlValidationReader(..). The parameter for this constructor is an instance of XmlReader(), and the specific XML
is syntactically correct, and validates with third party tool.
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
Error: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
Exception object: System.Runtime.InteropServices.COMException
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
Stack trace:
<blockquote style="border:0px; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; margin:0px 0px 10px; outline:0px; padding:10px 10px 1px; background-color:#eeeeee; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; quotes:none; line-height:17.600000381469727px
<p style="border:none; font-style:inherit; font-family:inherit; padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
System.Security.Policy.PEFileEvidenceFactory.GetLocationEvidence(SafePEFileHandle peFile, SecurityZone& zone, StringHandleOnStack retUrl) at System.Security.Policy.PEFileEvidenceFactory.GenerateLocationEvidence() at System.Security.Policy.PEFileEvidenceFactory.GenerateEvidence(Type
evidenceType) at System.Security.Policy.AssemblyEvidenceFactory.GenerateEvidence(Type evidenceType) at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type) at System.Security.Policy.Evidence.GetHostEvidence(Type type, Boolean markDelayEvaluatedEvidenceUsed)
at System.Security.Policy.AppDomainEvidenceFactory.GenerateEvidence(Type evidenceType) at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type) at System.Security.Policy.Evidence.RawEvidenceEnumerator.MoveNext() at System.Security.Policy.Evidence.EvidenceEnumerator.MoveNext()
at System.Configuration.ClientConfigPaths.GetEvidenceInfo(AppDomain appDomain, String exePath, String& typeName) at System.Configuration.ClientConfigPaths.GetTypeAndHashSuffix(AppDomain appDomain, String exePath) at System.Configuration.ClientConfigPaths..ctor(String
exePath, Boolean includeUserConfig) at System.Configuration.ClientConfigPaths.GetPaths(String exePath, Boolean includeUserConfig) at System.Configuration.ClientConfigurationHost.RequireCompleteInit(IInternalConfigRecord record) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String
configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Configuration.ConfigurationManager.GetSection(String
sectionName) at System.Xml.Schema.XmlSchemaCollection..ctor(XmlNameTable nametable)<br/>
at System.Xml.XmlValidatingReaderImpl..ctor(XmlReader reader) at System.Xml.XmlValidatingReader..ctor(XmlReader reader)
</blockquote>
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
I have not changed any security configuration in the system. The specific account under which the assembly is loaded has administrative privileges. Any idea of what could cause this issue? I have run through the web extensively, but in vain.
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; line-height:16.799999237060547px
he related code (its at the XmlValidationReader constructor it throws exception, and it is sporadic):-
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; line-height:16.799999237060547px
<pre class="prettyprint public bool Validate(string xmlSource){ XmlReader reader = new XmlTextReader(new StringReader(xmlSource)); return validate(reader);}private bool validate(XmlReader reader){ try { XmlValidatingReader validator = new XmlValidatingReader(reader);[/code]
<br/>
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
View the full article
am developing a library (VS 2010, assembly targeted for AnyCPU) and I am getting the following error while stepping over the constructor of XmlValidationReader(..). The parameter for this constructor is an instance of XmlReader(), and the specific XML
is syntactically correct, and validates with third party tool.
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
Error: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
Exception object: System.Runtime.InteropServices.COMException
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
Stack trace:
<blockquote style="border:0px; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; margin:0px 0px 10px; outline:0px; padding:10px 10px 1px; background-color:#eeeeee; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; quotes:none; line-height:17.600000381469727px
<p style="border:none; font-style:inherit; font-family:inherit; padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
System.Security.Policy.PEFileEvidenceFactory.GetLocationEvidence(SafePEFileHandle peFile, SecurityZone& zone, StringHandleOnStack retUrl) at System.Security.Policy.PEFileEvidenceFactory.GenerateLocationEvidence() at System.Security.Policy.PEFileEvidenceFactory.GenerateEvidence(Type
evidenceType) at System.Security.Policy.AssemblyEvidenceFactory.GenerateEvidence(Type evidenceType) at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type) at System.Security.Policy.Evidence.GetHostEvidence(Type type, Boolean markDelayEvaluatedEvidenceUsed)
at System.Security.Policy.AppDomainEvidenceFactory.GenerateEvidence(Type evidenceType) at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type) at System.Security.Policy.Evidence.RawEvidenceEnumerator.MoveNext() at System.Security.Policy.Evidence.EvidenceEnumerator.MoveNext()
at System.Configuration.ClientConfigPaths.GetEvidenceInfo(AppDomain appDomain, String exePath, String& typeName) at System.Configuration.ClientConfigPaths.GetTypeAndHashSuffix(AppDomain appDomain, String exePath) at System.Configuration.ClientConfigPaths..ctor(String
exePath, Boolean includeUserConfig) at System.Configuration.ClientConfigPaths.GetPaths(String exePath, Boolean includeUserConfig) at System.Configuration.ClientConfigurationHost.RequireCompleteInit(IInternalConfigRecord record) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String
configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Configuration.ConfigurationManager.GetSection(String
sectionName) at System.Xml.Schema.XmlSchemaCollection..ctor(XmlNameTable nametable)<br/>
at System.Xml.XmlValidatingReaderImpl..ctor(XmlReader reader) at System.Xml.XmlValidatingReader..ctor(XmlReader reader)
</blockquote>
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
I have not changed any security configuration in the system. The specific account under which the assembly is loaded has administrative privileges. Any idea of what could cause this issue? I have run through the web extensively, but in vain.
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; line-height:16.799999237060547px
he related code (its at the XmlValidationReader constructor it throws exception, and it is sporadic):-
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; line-height:16.799999237060547px
<pre class="prettyprint public bool Validate(string xmlSource){ XmlReader reader = new XmlTextReader(new StringReader(xmlSource)); return validate(reader);}private bool validate(XmlReader reader){ try { XmlValidatingReader validator = new XmlValidatingReader(reader);[/code]
<br/>
<p style="border:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; padding-right:0px; color:#333333; font-size:13.600000381469727px; vertical-align:baseline; clear:both; word-wrap:break-word; line-height:17.600000381469727px
View the full article