|
next
|
 Subject: Stylus Studio install breaks working directory for .NET XSL transform Author: Shannon M Date: 16 May 2006 03:10 PM
|
For the method:
System.Xml.Xsl.XslCompiledTransform.Load("unqualified.xsl")
On a device without Stylus Studio installed,
refers to the ASP.NET application path (the working directory).
On a device with Stylus Studio installed,
refers to the Stylus Studio\bin directory.
Can you comment on whether this is expected, and if not, file a bug report for me?
The .NET documentation provides examples of using the method unqualified, can you recommend a fix to make my development PC operate normally?
----- error log -----
Could not find file 'C:\Program Files\Stylus Studio 2006 Release 2 XML Enterprise Edition\bin\unqualified.xsl'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\Program Files\Stylus Studio 2006 Release 2 XML Enterprise Edition\bin\unqualified.xsl'.
Source Error:
Line 7: {
Line 8: System.Xml.Xsl.XslCompiledTransform xslt = new System.Xml.Xsl.XslCompiledTransform();
Line 9: xslt.Load("unqualified.xsl");
Line 10: System.Xml.XmlReader xr = SRMCommon.Data.Utility.EasySqlXmlReader(
Line 11: System.Web.Configuration.WebConfigurationManager.ConnectionStrings["SYSDBCompatible"],
Source File: c:\Inetpub\wwwroot\testapp\testpage.aspx Line: 9
Stack Trace:
[FileNotFoundException: Could not find file 'C:\Program Files\Stylus Studio 2006 Release 2 XML Enterprise Edition\bin\unqualified.xsl'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2014413
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +998
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +113
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +93
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +71
System.Xml.Xsl.Xslt.XsltLoader.CreateReader(Uri uri, XmlResolver xmlResolver) +60
System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver xmlResolver) +439
System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil) +56
System.Xml.Xsl.XslCompiledTransform.CompileToQil(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) +116
System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) +106
System.Xml.Xsl.XslCompiledTransform.Load(String stylesheetUri) +130
|
|
|
|