wtijsma
-
1/20/2005 3:26:02 PM
BUG: Can't create default transformation for containers
If I try to add a default transformation for folders, an exception is thrown:
Could not find a part of the path "C:\Projecten\Website\trunk\src\CMSDesk_cs\metadata\Vitsol\CategoryCollection\forms\default.config". 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.DirectoryNotFoundException: Could not find a part of the path "C:\Projecten\Website\trunk\src\CMSDesk_cs\metadata\Vitsol\CategoryCollection\forms\default.config".
Source Error:
Line 20: Line 21: className = formNameArr[0] + "." + formNameArr[1]; Line 22: formXML.Load(MetadataProvider.GetMetadataPath() + @"\" + formNameArr[0] + @"\" + formNameArr[1] + @"\forms\" + formNameArr[2] + ".config"); Line 23: xslText = @"<xsl:stylesheet xmlns:xsl=""http://www.w3.org/1999/XSL/Transform"" version=""1.0"">" + Environment.NewLine + @"<xsl:output method=""html""/>" + Environment.NewLine + @"<xsl:template match=""" + className.ToLower() + @""">" + Environment.NewLine; Line 24: foreach (XmlNode transTemp0 in formXML.SelectNodes("/form/field"))
Source File: C:\Projecten\Website\trunk\src\MetadataEngine_cs\TransformationGenerator.cs Line: 22
Stack Trace:
[DirectoryNotFoundException: Could not find a part of the path "C:\Projecten\Website\trunk\src\CMSDesk_cs\metadata\Vitsol\CategoryCollection\forms\default.config".] System.IO.__Error.WinIOError(Int32 errorCode, String str) +287 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +888 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +45 System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +73 System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +55 System.Xml.XmlTextReader.CreateScanner() +384 System.Xml.XmlTextReader.Init() +23 System.Xml.XmlTextReader.Read() +530 System.Xml.XmlValidatingReader.ReadWithCollectTextToken() System.Xml.XmlValidatingReader.Read() System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +80 System.Xml.XmlDocument.Load(XmlReader reader) +72 System.Xml.XmlDocument.Load(String filename) Kentico.CMS.MetadataEngine.TransformationGenerator.GetXSLTransformation(String formName) in C:\Projecten\Website\trunk\src\MetadataEngine_cs\TransformationGenerator.cs:22 Kentico.CMS.CMSDesk.TransformationEdit.btnUseDefault_Click(Object sender, EventArgs e) in C:\Projecten\Website\trunk\src\CMSDesk_cs\MetaDesigner\TransformationEdit.aspx.cs:211 System.Web.UI.WebControls.Button.OnClick(EventArgs e) System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) System.Web.UI.Page.ProcessRequestMain()
|