Technical support This forum is closed.
Version 1.x > Technical support > BUG: Folder raises exception in preview mode View modes: 
User avatar
Member
Member
wtijsma - 1/20/2005 2:48:32 PM
   
BUG: Folder raises exception in preview mode
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 526: transformationIDAttrib.Value = transformationShortName.ToLower();
Line 527: transformationNode.Attributes.Append(transformationIDAttrib);
Line 528: transformationNode.InnerXml = Strings.Replace(transformationXML.OuterXml + "", @"<?xml version=""1.0""?>", "", 1, -1, (CompareMethod) (0));
Line 529: mXML.SelectSingleNode("/applications/application[@id='" + applicationName.ToLower() + "']/classes/class[@id='" + className.ToLower() + "']/transformations").AppendChild(transformationNode);
Line 530: }


Source File: C:\Projecten\Website\trunk\src\MetadataEngine_cs\MetadataProvider.cs Line: 528

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
System.Xml.XmlTextReader..ctor(String xmlFragment, XmlNodeType fragType, XmlParserContext context)
System.Xml.XmlValidatingReader..ctor(String xmlFragment, XmlNodeType fragType, XmlParserContext context)
System.Xml.XmlLoader.CreateInnerXmlValidatingReader(String xmlFragment, XmlNodeType nt, XmlParserContext context, XmlDocument doc)
System.Xml.XmlLoader.ParsePartialContent(XmlNode parentNode, String innerxmltext, XmlNodeType nt)
System.Xml.XmlLoader.LoadInnerXmlElement(XmlElement node, String innerxmltext)
System.Xml.XmlElement.set_InnerXml(String value)
Kentico.CMS.MetadataEngine.MetadataProvider.EnsureTransformation(String applicationName, String className, String transformationShortName) in C:\Projecten\Website\trunk\src\MetadataEngine_cs\MetadataProvider.cs:528
Kentico.CMS.MetadataEngine.MetadataProvider.GetTransformation(String transformationName) in C:\Projecten\Website\trunk\src\MetadataEngine_cs\MetadataProvider.cs:171
Kentico.CMS.ContentEngine.ContentProvider.Transform(String xml, String transformationName) in C:\Projecten\Website\trunk\src\ContentEngine_cs\ContentProvider.cs:363
Kentico.CMS.ContentEngine.ContentProvider.GetSingleNodeContent(String path, TreePathTypeEnum pathType, String className, String transformationName) in C:\Projecten\Website\trunk\src\ContentEngine_cs\ContentProvider.cs:123
Kentico.CMS.CMSControls.CMSViewer.GetContent() in C:\Projecten\Website\trunk\src\CMSControls_cs\CMSViewer.cs:374
Kentico.CMS.CMSControls.CMSViewer.CreateChildControls() in C:\Projecten\Website\trunk\src\CMSControls_cs\CMSViewer.cs:277
System.Web.UI.Control.EnsureChildControls()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Page.ProcessRequestMain()




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

User avatar
Guest
admin - 2/3/2005 4:06:46 PM
   
Re: BUG: Folder raises exception in preview mode
Hi Wiebe,

this seems to be working fine in version 1.4 (C# version). Could you please verify that the bug was fixed in the upgrade?

Thank you.

User avatar
Member
Member
wtijsma - 2/4/2005 10:00:04 AM
   
Re: BUG: Folder raises exception in preview mode
Hi Petr,

Nope... It still occurs, but only because when there is no default transformation.
The default transformation is not generated automatically when the document template is added, and also an exception is raised when I try to generate the default transformation for it.

Could not find a part of the path "C:\Projecten\Website\trunk\src\CMSDesk_cs\metadata\Vitsol\EventCollection\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\EventCollection\forms\default.config".

Wich makes sense because a document template without custom attributes doesn't have a form ofcourse.

User avatar
Guest
admin - 3/29/2005 4:02:07 PM
   
Re: BUG: Folder raises exception in preview mode
Thank you for details. This will be fixed in version 1.6.

Best Regards,