Technical support This forum is closed.
Version 1.x > Technical support > Cannot create a DocumentType with an attribute that is not visible on the editing form View modes: 
User avatar
Member
Member
janusz - 7/14/2005 11:21:49 AM
   
Cannot create a DocumentType with an attribute that is not visible on the editing form
Hello,

I cannot create a DocumentType with an attribute that is not visible on the editing form. I got the following error:


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 59: 'generate XSLT transformation
Line 60: If isCoupled Then
Line 61: Dim xsl As XmlDocument = TransformationGenerator.GetXSLTransformation(ClassName & ".default")
Line 62: xsl.Save(Functions.GetMetadataPath & "\" & ClassName.Split("."c)(0) & "\" & ClassName.Split("."c)(1) & "\transformations\default.config")
Line 63: End If


Source File: C:\Projects\AddevaNew\cmsdesk\MetaDesigner\TemplateWizard_Finished.ascx.vb Line: 61



I am running the project on 1.6b version. I had suspected that there was something wrong with my project but I have tried it on 3 different projects and on different computers and it does not work as well. However, I can create a document type with visible attributes and change it later to invisible attributes.

I suspect that this relates to my previous topic - http://www.kentico.com/Forums/ShowPost.aspx?PostID=276

User avatar
Guest
admin - 7/14/2005 2:29:55 PM
   
Re: Cannot create a DocumentType with an attribute that is not visible on the editing form
Hi Janusz,

I'm very sorry, but this seems to be a bug in version 1.6b. We will fix it in v1.7.

Thank you very much for pointing us to this bug.

Best Regards,