xsl:include & IIS

E

Eugene Banks

I am running into a permissions issue when trying to load
an XSLT document. The XSLT document has an xsl:include
element that references a local url:

<xsl:include
href="http://localhost/file/path/here/Common.xslt" />

When I attempt to load the XSLT file into an
XslTransform, an exception is thrown:

XmlTextReader xsltTranslator = new XmlTextReader()
//Do stuff here to load XmlTextReader
....

XmlDocument TransformDocument = new XmlDocument();
TransformDocument.Load(xsltTranslator);

// XSL Transform doc
XslTransform ContentTransform = new XslTransform();
// Create an XML Resolver
XmlResolver ResolverDocument = new XmlUrlResolver();

// Load XSLT
ContentTransform.Load(TransformDocument,
ResolverDocument, null);

"The remote server returned an error: (401) Unauthorized."

This is an internal application, and only Integrated
Windows Authentication is enabled within IIS. If I
enable Anonymous Access, no exception is thrown and the
page loads correctly. However, enabling Anonymous Access
is unacceptable due to the sensitive nature of the data
this application is administering and user management
requirements.

Has anyone encountered this issue before? Any
suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top