M
Mike Schilling
In 1.0, there was a method call:
XslTransform.Load(IXPathNavigable, XmlResolver)
In 1.1, compiling a call to it gives a warning that this signature is
obsolete and evidence should be suppied, that it, that a call to
XslTransform.Load(IXPathNavigable, XmlResolver, Evidence)
is preferred.
If I pass "null" as my evidence, bad things happen. Some of my custom XPath
functions, which do reflective calls on System.Xml.XPath classes, will then
fail with security violations. What sort of evidence do I provide to say
"run my XPath functions with the same privilege as any other code in this
assembly"? (I've looked at what the 2-argument form of Load does, and
there's no way to emulate it.)
XslTransform.Load(IXPathNavigable, XmlResolver)
In 1.1, compiling a call to it gives a warning that this signature is
obsolete and evidence should be suppied, that it, that a call to
XslTransform.Load(IXPathNavigable, XmlResolver, Evidence)
is preferred.
If I pass "null" as my evidence, bad things happen. Some of my custom XPath
functions, which do reflective calls on System.Xml.XPath classes, will then
fail with security violations. What sort of evidence do I provide to say
"run my XPath functions with the same privilege as any other code in this
assembly"? (I've looked at what the 2-argument form of Load does, and
there's no way to emulate it.)