CodeSmith Community
Your Code. Your Way. Faster!

System.NullReferenceException on create an Instance of CodeTemplate

Latest post 09-16-2008 8:18 AM by blake05. 3 replies.
  • 11-28-2005 2:41 PM

    System.NullReferenceException on create an Instance of CodeTemplate

    Hi Guys,
     
    I tryed (i'm still trying) to write a simple Template - Generator in C# using VS2005 and CodeSmith.Engine.
    When i tryed to instantiate an Object from CodeTemplate Class like:
     
    ..
    ..
    using CodeSmith.Engine; 
     
    .
    .
    .
    CodeTemplate ctem = new CodeTemplate();
     
    I got SystemNullReferenceException.
     
    I use CodeSmith 3.1
     
    Any ideas?
     
    thanks
     
    Paul.
      
    • Post Points: 35
  • 02-08-2008 11:36 AM In reply to

    Re: System.NullReferenceException on create an Instance of CodeTemplate

    Hi,

     I'm having the same problem as I'm trying to render a template from a template, but I cannot create an instance.

    Also, I cannot see child template properties in the property grid of the master template: those properties are defined in the code-behind class of the child template.

    Has anyone a solution about that?

    • Post Points: 5
  • 02-19-2008 8:36 AM In reply to

    Re: System.NullReferenceException on create an Instance of CodeTemplate

    Hi, any news about this topic?
    • Post Points: 35
  • 09-16-2008 8:18 AM In reply to

    • blake05
    • Top 25 Contributor
    • Joined on 04-03-2008
    • Wisconsin
    • Posts 416
    • Points 7,635

    Re: System.NullReferenceException on create an Instance of CodeTemplate

    Hello,

    I have filed this as a critical bug, I will update this thread when a solution is available.

    Thank you,
    Blake Niemyjski

    Blake Niemyjski

    CodeSmith Tools, LLC Support Specialist

    Blog: http://windowscoding.com/blogs/blake/

    ----------------------------------------------------------------------
     Member of the .NetTiers team | Visit http://www.nettiers.com
    ----------------------------------------------------------------------

    • Post Points: 5
Page 1 of 1 (4 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems