473,657 Members | 2,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Evidence bug

Hello all,

not so long I've found really strange bug in the .NET. It seems that
Evidence that I've got from the current executing Assembly is somehow
expired (it happens suddenly after about month) and Xslt Transformation
stop working at all for the whole AppDomain until I restart it. Am I
using "this.GetType() .Assembly.Evide nce" incorrectly?

Here is the code snippet:

XslTransform xt = new XslTransform();
try
{
xt.Load(new XmlTextReader(s tream), null, this.GetType(). Assembly.Eviden ce);
}
catch(XsltCompi leException ex)
{
throw new WebReportsExcep tion(Utils.Exce ptionsToString( ex), ex);
}

And this is the stacktrace:

Exception: System.Security .Cryptography.C ryptographicExc eption
Message: The parameter is incorrect.
Source: mscorlib
at System.Security .Policy.PolicyL evel.GenericRes olve(Evidence
evidence, Boolean& allConst)
at System.Security .Policy.PolicyL evel.Resolve(Ev idence evidence,
Int32 count, Char[] serializedEvide nce)
at System.Security .PolicyManager. Resolve(Evidenc e evidence,
PermissionSet request)
at System.Security .SecurityManage r.ResolvePolicy (Evidence evidence)
at System.Xml.Xsl. Compiler.Compil e(NavigatorInpu t input, XmlResolver
xmlResolver, Evidence evidence)
at System.Xml.Xsl. XslTransform.Co mpile(XPathNavi gator stylesheet,
XmlResolver resolver, Evidence evidence)
at System.Xml.Xsl. XslTransform.Lo ad(XPathNavigat or stylesheet,
XmlResolver resolver, Evidence evidence)
at System.Xml.Xsl. XslTransform.Lo ad(XmlReader stylesheet,
XmlResolver resolver, Evidence evidence)

Thanks in advance,
Tod
Nov 12 '05 #1
1 1665
And what if I pass Evidence that I've created using
CreateEvidenceF orUrl(@"my working directory")? What is the diference
between this evidence and evidence that I've retrieved from Assembly
(this.GetType() .Assembly.Evide nce)?

Thanks again!

Tod Johnson wrote:
Hello all,

not so long I've found really strange bug in the .NET. It seems that
Evidence that I've got from the current executing Assembly is somehow
expired (it happens suddenly after about month) and Xslt Transformation
stop working at all for the whole AppDomain until I restart it. Am I
using "this.GetType() .Assembly.Evide nce" incorrectly?

Here is the code snippet:

XslTransform xt = new XslTransform();
try
{
xt.Load(new XmlTextReader(s tream), null,
this.GetType(). Assembly.Eviden ce);
}
catch(XsltCompi leException ex)
{
throw new WebReportsExcep tion(Utils.Exce ptionsToString( ex), ex);
}

And this is the stacktrace:

Exception: System.Security .Cryptography.C ryptographicExc eption
Message: The parameter is incorrect.
Source: mscorlib
at System.Security .Policy.PolicyL evel.GenericRes olve(Evidence
evidence, Boolean& allConst)
at System.Security .Policy.PolicyL evel.Resolve(Ev idence evidence,
Int32 count, Char[] serializedEvide nce)
at System.Security .PolicyManager. Resolve(Evidenc e evidence,
PermissionSet request)
at System.Security .SecurityManage r.ResolvePolicy (Evidence evidence)
at System.Xml.Xsl. Compiler.Compil e(NavigatorInpu t input, XmlResolver
xmlResolver, Evidence evidence)
at System.Xml.Xsl. XslTransform.Co mpile(XPathNavi gator stylesheet,
XmlResolver resolver, Evidence evidence)
at System.Xml.Xsl. XslTransform.Lo ad(XPathNavigat or stylesheet,
XmlResolver resolver, Evidence evidence)
at System.Xml.Xsl. XslTransform.Lo ad(XmlReader stylesheet, XmlResolver
resolver, Evidence evidence)

Thanks in advance,
Tod

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2044
by: William Baker | last post by:
please add forward to alt.security.terrorism if information p.p.s. "john bokma" shows long list in message boards, just in last month. lots of information to netherlands where muslem militants are. could some be coded cryption to aljazeera, so messages are in secret for the terror network? nl.comp.hardware nl.media.tv nl.wetenschap nl.huishouden
4
2963
by: David Mathog | last post by:
I'm looking for studies that objectively compare various languages to measure the following attributes: 1. Ease of writing new code (better== faster, better==fewer bugs). 2. Ease of maintaining existing code. 3. Portability. 4. Time to learn language "adequately". 5. Speed of resulting code. The last time I saw such a study was almost 10 years ago, compared only
0
1040
by: Tod Johnson | last post by:
Hello again, Does it mean that nobody knows the answer? :( ----------------------------------- not so long I've found really strange bug in the .NET. It seems that Evidence that I've got from the current executing Assembly is somehow expired (it happens suddenly after about month) and Xslt Transformation stop working at all for the whole AppDomain until I restart it. Am I using "this.GetType().Assembly.Evidence" incorrectly?
0
1154
by: Ross Klatte | last post by:
Google has 217 hits for Kawagawa Prefecture. Ross Vontay, Virginia http://community.webshots.com/user/ross_klatte
4
2528
by: Mike Schilling | last post by:
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.
0
832
by: Tod Johnson | last post by:
Not so long I've found really strange bug in the .NET. It seems that Evidence that I've got from the current executing Assembly is somehow expired (it happens suddenly after about month) and Xslt Transformation stop working at all for the whole AppDomain until I restart it. Am I using "this.GetType().Assembly.Evidence" incorrectly? And another question is what if I pass Evidence that I've created using CreateEvidenceForUrl(@"my working...
1
1886
by: MS Newsgroups | last post by:
Hi, From what i understand i should be able to set strong name on assembly and then use this strong name as evidence when calling a class, to allow only a certain application to use a class. Is this corrent ?, if so any insight in how to code this would be appreciated. Thanks
0
868
by: Sky | last post by:
Hello: I'm having to build a userSettings provider to work on CE... There's a detail of it that is really stumping me: generating the folder name to store the user.settings in. The folder that is created to store the user.config in is formed by the following rule: {ApplicationSettings}\
0
1080
by: Dinesh | last post by:
Hi, We are seeing high memory usage (1GB) and subsequently out of memory exception. We are trying to transform the documents using xslt and most importantly using Assembly.Evidence to avoid security exception. Is there any known issue with Assembly.Evidence and memory usage. Please help
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.