M
Matthias Truxa
Hello,
I've got a serious Problem from out of nowhere that I'm not able to solve.
Can someone please help me here?
I'm trying to instantiate a Xslt document build in as a resource using:
htmlTransformator = new XslTransform();
using (Stream mrs =
typeof(MyType).Assembly.GetManifestResourceStream("MyNSp.my.xslt"))
{
XmlTextReader r = new XmlTextReader(mrs);
htmlTransformator.Load (r, null, typeof(MyType).Assembly.Evidence); //
<<< "Invalid Xml"
r.Close();
}
The document is valid, well-formatted and is not the source of error since I
tried to pass a nearly empty one and it didn't work out neither.
All the procedure has run for a long time. The error occurred as I wanted to
change the Xsl (I already undid this for test).
You may not reproduce this error since it seems to be only not working on my
local machine.
I've found a similar thing at
http://www.dotnet247.com/247reference/msgs/48/241599.aspx.
All things as restarting computer and webserver, clearing the caches,
resetting security policies didn't solve the prob.
So I think its a local security problem, based on the stack trace I get:
[ArgumentException: Ungültiger Xml.]
System.Security.Policy.PolicyStatement.FromXml(SecurityElement et,
PolicyLevel level) +570
System.Security.Policy.PolicyLevel.CheckCache(Int32 count, Char[]
serializedEvidence, Boolean& xmlError) +164
System.Security.Policy.PolicyLevel.Resolve(Evidence evidence, Int32
count, Char[] serializedEvidence) +54
System.Security.PolicyManager.Resolve(Evidence evidence, PermissionSet
request) +147
System.Security.SecurityManager.ResolvePolicy(Evidence evidence) +133
System.Xml.Xsl.Compiler.Compile(NavigatorInput input, XmlResolver
xmlResolver, Evidence evidence) +372
System.Xml.Xsl.XslTransform.Compile(XPathNavigator stylesheet,
XmlResolver resolver, Evidence evidence) +215
System.Xml.Xsl.XslTransform.Load(XPathNavigator stylesheet, XmlResolver
resolver, Evidence evidence) +124
System.Xml.Xsl.XslTransform.Load(XmlReader stylesheet, XmlResolver
resolver, Evidence evidence) +74
Does someone have had this problem and solved it?
Thanx for any assistence.
Matt
I've got a serious Problem from out of nowhere that I'm not able to solve.
Can someone please help me here?
I'm trying to instantiate a Xslt document build in as a resource using:
htmlTransformator = new XslTransform();
using (Stream mrs =
typeof(MyType).Assembly.GetManifestResourceStream("MyNSp.my.xslt"))
{
XmlTextReader r = new XmlTextReader(mrs);
htmlTransformator.Load (r, null, typeof(MyType).Assembly.Evidence); //
<<< "Invalid Xml"
r.Close();
}
The document is valid, well-formatted and is not the source of error since I
tried to pass a nearly empty one and it didn't work out neither.
All the procedure has run for a long time. The error occurred as I wanted to
change the Xsl (I already undid this for test).
You may not reproduce this error since it seems to be only not working on my
local machine.
I've found a similar thing at
http://www.dotnet247.com/247reference/msgs/48/241599.aspx.
All things as restarting computer and webserver, clearing the caches,
resetting security policies didn't solve the prob.
So I think its a local security problem, based on the stack trace I get:
[ArgumentException: Ungültiger Xml.]
System.Security.Policy.PolicyStatement.FromXml(SecurityElement et,
PolicyLevel level) +570
System.Security.Policy.PolicyLevel.CheckCache(Int32 count, Char[]
serializedEvidence, Boolean& xmlError) +164
System.Security.Policy.PolicyLevel.Resolve(Evidence evidence, Int32
count, Char[] serializedEvidence) +54
System.Security.PolicyManager.Resolve(Evidence evidence, PermissionSet
request) +147
System.Security.SecurityManager.ResolvePolicy(Evidence evidence) +133
System.Xml.Xsl.Compiler.Compile(NavigatorInput input, XmlResolver
xmlResolver, Evidence evidence) +372
System.Xml.Xsl.XslTransform.Compile(XPathNavigator stylesheet,
XmlResolver resolver, Evidence evidence) +215
System.Xml.Xsl.XslTransform.Load(XPathNavigator stylesheet, XmlResolver
resolver, Evidence evidence) +124
System.Xml.Xsl.XslTransform.Load(XmlReader stylesheet, XmlResolver
resolver, Evidence evidence) +74
Does someone have had this problem and solved it?
Thanx for any assistence.
Matt