in

CodeSmith Community

Your Code. Your Way. Faster!

System.NullReferenceException on create an Instance of CodeTemplate

Last post 02-19-2008 8:36 AM by Daniele Camanni. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 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: 5
Page 1 of 1 (3 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems