Ask a Question related to ASP.NET Security, Design and Development.
-
Brian Spanton #1
strange xsl security exception under asp.net
hey all,
if anyone has any info on the following (or any
experiments to suggest), i'd be grateful. i'm at a
complete loss.
exception:
Message: Invalid Xml.
Class: class System.ArgumentException
Stack:
at System.Security.Policy.PolicyStatement.FromXml
(SecurityElement et, PolicyLevel level)
at System.Security.Policy.PolicyLevel.CheckCache(Int3 2
count, Char[] serializedEvidence, Boolean& xmlError)
at System.Security.Policy.PolicyLevel.Resolve(Evidenc e
evidence, Int32 count, Char[] serializedEvidence)
at System.Security.PolicyManager.Resolve(Evidence
evidence, PermissionSet request)
at System.Security.SecurityManager.ResolvePolicy
(Evidence evidence)
at System.Xml.Xsl.Compiler.Compile(NavigatorInput
input, XmlResolver xmlResolver, Evidence evidence)
at System.Xml.Xsl.XslTransform.Compile(XPathNavigator
stylesheet, XmlResolver resolver, Evidence evidence)
at System.Xml.Xsl.XslTransform.Load(String url,
XmlResolver resolver)
at System.Xml.Xsl.XslTransform.Load(String url)
xsl file contents (any more than this changes nothing,
any less gets normal and expected xsl compile errors):
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
</xsl:stylesheet>
notes:
1) framework 1.1, xp pro
2) asp.net app written in j#
3) url from bottom frame is a file path to a local xsl
file
4) this code path and stylesheet declaration work fine
for hundreds of other xsl files
5) one specific file that hasn't changed in months just
started throwing this exception
6) contents of the file do get parsed to a point, but
have little to do with it (see above)
7) the same thing happened to one of my coworkers a few
weeks ago but with a different file, it hasn't gone away
8) resetting iis or rebooting machine doesn't help
9) deleting and recreating the file doesn't help
10) same code path in a console app works fine
11) blowing away
C:\WINDOWS\Microsoft.NET\Framework\*\Temporary ASP.NET
Files\[My App] doesn't help
12) only workaround appears to be to rename the file
any ideas are much appreciated.
thanks,
brian
Brian Spanton Guest
-
Strange SOAP Exception
I get the following error when thowing a SOAP Exception: The type System.Web.Services.Protocols.SoapException in Assembly System.Web.Services,... -
Security Exception
On Tue, 06 Jul 2004 20:56:52 GMT, "jamie" <jamie.jones@virgin.net> wrote: It's not an IIS issue. Try annoying just the other five groups for... -
Security Exception on ASP.Net app
I've recently moved an ASP.Net app to our deployment server after it was verified on our integration test server. On the deployment server I am... -
help with Security Exception ??
Hi, I am getting the following error: Security Exception Description: The application attempted to perform an operation not allowed by the... -
Strange exception ??
Greatings. We are developint an application using struts on linux. We run a db2 server (v8.1) on linux. When trying to access using JDBC drivers I...



Reply With Quote

