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 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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
|
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?
|
by: Ross Klatte |
last post by:
Google has 217 hits for Kawagawa Prefecture.
Ross
Vontay, Virginia
http://community.webshots.com/user/ross_klatte
|
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.
| |
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...
|
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
|
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}\
|
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
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |