473,473 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error loading an XSLT

Hi,

I've run into a problem that I haven't been able to find a whole lot of
information on and I'm hoping someone might recognize it enough to give
me some pointers.

I've got the following code:

XslTransform myTransform = new XslTransform();
myTransform.Load(@"M:\MyData\MyTransform.xsl");

When the call to the Load routine executes, I get a system
ArgumentException with the description "Invalid Site".

Here's the stack trace:
at System.Security.Util.SiteString.CreateSeparatedSit e(String site)
at System.Security.Util.SiteString..ctor(String site)
at System.Security.Policy.Site.ParseSiteFromUrl(Strin g name)
at System.Security.Policy.Site.CreateFromUrl(String url)
at System.Xml.XmlSecureResolver.CreateEvidenceForUrl( String
securityUrl)
at System.Xml.Xsl.XslTransform.Load(String url, XmlResolver resolver)
at System.Xml.Xsl.XslTransform.Load(String url)
...

I haven't been able to find much information on CreateSeparatedSite and
what I've been able to find on ParseSiteFromUrl doesn't really tell me
much. The XSL file is there and teh XSL code is correct (it's been used
in other instances with no problems.) This is the first time this code
has been tested on this particular laptop running Windows 2003 server,
but it's been run on that platform (and other) Windows boxes elsewhere
and not received this error.

Could this be a system setting under security? In order to test this
code, I did have to create a FullTrust Runtime Security policy for the
URL file://M:/* under the .NET configuration for Runtime Security
Policy > Machine > Code Groups > All_Code. Might there be some other
entry I have to make?

Got a headache from banging my head against this one, so any help is
MUCH appreciated.

Regards,
Ed

Nov 17 '05 #1
0 1007

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

Similar topics

0
by: Michael Alers | last post by:
Hi, I have the problem switching off the "loading of external DTD" feature while transforming xml/xslt with XALAN. The used xml-parser is XERCES. I know how to switch off this feature when only...
0
by: Martin Dugeorge | last post by:
Hello all, i've got an XSLT stylesheet containing a XSLT document function with an absolute URI : <xsl:for-each select="document('http://x.y.z/dir/a.xml')/root/element">...</xsl:for-each> ...
2
by: Patrick J. Schouten | last post by:
I am trying to transfor an XML document prior to loading into a Dataset. My problem stems from the known bug in Visual Studio that prevents loading a well formed XML because of duplicate child...
2
by: Larry Marburger | last post by:
I've built and XSLT that is used to generate a simple TreeView-type, web-based control (ASP.NET / C#). When the tree is fully transformed (client-side, JavaScript transformation), there are about...
17
by: rox.scott | last post by:
Can someone please explain why this happens? The expected output is 3, but uncommenting line 7 makes the output 0. Why ??? VB.NET code: ** note the commented line, this is the culprit ** Dim...
1
by: David C. allen | last post by:
I have created a simple Client-side SOAP Extension for a webclass that I have. When I apply the extension attribute to the the calling function in the proxy class I get an error 'Value cannot be...
4
by: andrewcw | last post by:
I am moving some code forward from .NET 1.1. I was able to load the XSL file and perform the transform. The MSDN documentation looks like it should be easy. But I get a compile error. Ideas ?...
1
by: Greg Collins [Microsoft MVP] | last post by:
I have a site that uses a custom 404 error page to perform URL Rewriting. This works excellent for all my needs except for one area. When transforming XML, I have some XSLT code that uses the...
0
by: pbd22 | last post by:
Hi. I am new to this... I want to be able to load the output of an XSLT script in a DIV when the user clicks on the appropriate link. I can get the XSLT as its own page fine, but how do I get it...
2
Dormilich
by: Dormilich | last post by:
Hi, I'm testing my classes for a web page and I stumble upon an error I don't have a clue what it means: Error: Fatal error: Can't use method return value in write context in "output.php" on...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.