473,847 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSLT and trusted files

Here is the deal. We have an ASP.NET page which does an XSLT
transform. Both the XSL and the XML come off a unc path on another
server. All annonymous accaess has been permissioned accordingly. In
addition aspnet_setreg.e xe has been downloaded and been run to give the
applications the appropriate permissions.

I feel it has something to do with trusted sites. If I change the code
to pass evidence to the XslTransform load (the good code) it all works
jim dandy and such. Unfortunately, I am unable to modify the code in
production and need to solve this at a machine.config / web.congig / OS
level. Any help would be greatly appreciated.

Thank you

Todd

***** BAD CODE *****
*************** **********
XslTransform xslt = new XslTransform();
xslt.Load(uncPa th);
xslt.Transform( doc, xslArg, tw, null);
string result = sb.ToString();
Response.Write( result);

***** GOOD CODE *****
*************** **********
XmlDocument d = new XmlDocument() ;
d.Load(uncPath)
XslTransform xslt = new XslTransform();
xslt.Load((IXPa thNavigable)d, null, this.GetType(). Assembly.Eviden ce);
xslt.Transform( doc, xslArg, tw, null);
string result = sb.ToString();
Response.Write( result);

May 12 '06 #1
2 1290
ALSO MY TRUST LEVELS:

<location allowOverride=" true">
<system.web>
<securityPolicy >
<trustLevel name="Full" policyFile="int ernal" />
<trustLevel name="High"
policyFile="web _hightrust.conf ig" />
<trustLevel name="Medium"
policyFile="web _mediumtrust.co nfig" />
<trustLevel name="Low"
policyFile="web _lowtrust.confi g" />
<trustLevel name="Minimal"
policyFile="web _minimaltrust.c onfig" />
</securityPolicy>

<!-- level="[Full|High|Mediu m|Low|Minimal]" -->
<trust level="Full" originUrl="" />

</system.web>
</location>

May 12 '06 #2
ALSO MY TRUST LEVELS:

<location allowOverride=" true">
<system.web>
<securityPolicy >
<trustLevel name="Full" policyFile="int ernal" />
<trustLevel name="High"
policyFile="web _hightrust.conf ig" />
<trustLevel name="Medium"
policyFile="web _mediumtrust.co nfig" />
<trustLevel name="Low"
policyFile="web _lowtrust.confi g" />
<trustLevel name="Minimal"
policyFile="web _minimaltrust.c onfig" />
</securityPolicy>

<!-- level="[Full|High|Mediu m|Low|Minimal]" -->
<trust level="Full" originUrl="" />

</system.web>
</location>

May 12 '06 #3

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

Similar topics

2
3412
by: nanookfan | last post by:
Hi all, I'm having a bizarre problem converting XML files to HTML using an XSLT. The problem is only occuring in my Netscape 7.0 browser. What makes it more bizarre is that it is only happening when I put my XML files and the .xsl files on my ISP's system for my home page. If I try to open the XML files in Netscape 7.0 on my own machine (ie, not on the ISP's system), the pages convert file and the result is displayed in HTML.
1
3606
by: Mohit | last post by:
Hi Friends I have to call 1 of the 2 child XSLT files from the Main XSLT file based on some criteria. I want one child XSLT file will be executed by version 1 of XSLT processor and the other by version 2 of XSLT processor based on some condition. Q) How and where shall I write logic or import desirable XSLT on the Fly ? Q) When we call AAA.XSLT then it will be processed by XSLT Processor 1
12
3245
by: gipsy boy | last post by:
Hello, I have sort of a big problem. I would really appreciate any help you could give me. I made a web service in C++ that throws XML to the client (browser). But, the XSLT transormation (xml->html) doen't happen! I have XSLT files for this, they work, I mean when I put the output of the app as an XML file on some server, and make it use the XSLT files to transform into HTML, it works, I get a HTML page.
5
4417
by: shauldar | last post by:
Is there a way (tool, hack...) to create an XSL:FO from an XSLT + XML files? My motivation is that we want to use a tool to design reports, and from that "design" generate both HTML (via XSLT) and PDF (via XSL:FO). The only tool we have seen is Altova's StyleVision, which is very unfriendly (and uses a proprietary representation, SPS, from which it generates the various XSLs). We have considered instead using InfoPath, which is WYSIWYG,...
4
4826
by: schneider | last post by:
Anyone know if there is a way to dynamicly create a Xslt template/s and use them as an xml transform with-out use files for the Xslt? All the methods I see use files. I want to create a Xslt transform via code? Any examples would be great.
2
2505
by: astroboiii | last post by:
New to the whole xml thing and finding w3schools to be an excellent resource. Now down to my question: I have several xml files I need to parse through and grab relevant information from and produce a new xml file. This needs to be automated through ant. The ant script is working fine, and I am usign the <transform> function to use my xslt file and go through all the required xml files, parse them, style them, and ultimately generate my...
2
3230
by: killy971 | last post by:
I have been testing different libraries to process XSL transformations on large XML files. The fact is that I read a document from Intel, stating their library (XSLT accelerator) was more twice faster than Apache Xalan, and was designed to perform well on large XML files. - http://isdlibrary.intel-dispatch.com/isd/10/wp_XSLT.PDF - http://www.intel.com/cd/software/products/asmo-na/eng/366637.htm Please note that their benchmark was only...
1
5721
by: Sandeep Singh | last post by:
Hi, How to do group by in XSLT ? I tried on the following codes: <files> <file name="swablr.eps" size="4313" project="mars"/> <file name="batboy.wks" size="424" project="neptune"/> <file name="potrzebie.dbf" size="1102" project="jupiter"/>
0
9879
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
10978
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
10643
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9477
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...
0
5716
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...
0
5907
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4521
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
4113
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3158
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.