CodeSmith Community
Your Code. Your Way. Faster!

Error using CodeSmith with a Sybase database

Latest post 04-30-2008 2:32 PM by blake05. 2 replies.
  • 11-13-2007 12:57 AM

    • MC400
    • Not Ranked
    • Joined on 11-12-2007
    • Posts 1
    • Points 35

    Error using CodeSmith with a Sybase database

    My company is currently evaluating the CodeSmith Professional software version 4.1.2 Rev. 2729.
    We are interested in generating template-based business objects for using them with NHibernate. We are using a Sybase ASA 9 database. Everytime we're executing the NHibernate.class.cst template out of the IDE we get the following error:

    System.Runtime.InteropServices.COMException (0x800A0CB3): Ausnahme von HRESULT: 0x800A0CB3
       bei ADOX.Keys.get_Count()
       bei SchemaExplorer.ADOXSchemaProvider.GetTablePrimaryKey(String connectionString, TableSchema table)
       bei SchemaExplorer.TableSchema.get_PrimaryKey()
       bei _CodeSmith.NHibernate_hbm_cst.__RenderMethod1(TextWriter writer, Control control)
       bei CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
       bei CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
       bei CodeSmith.Engine.Control.Render(TextWriter writer)
       bei CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
       bei CodeSmith.Engine.CodeTemplate.RenderToString()
       bei ej.s()

    The connection to the database is established and we can choose tables from the table picker dialog. Any idea what causes this problems?

    Thanks in advance!

    • Post Points: 35
  • 04-29-2008 9:21 AM In reply to

    • sfncd
    • Not Ranked
    • Joined on 04-29-2008
    • Posts 1
    • Points 35

    Re: Error using CodeSmith with a Sybase database

    Hi guys,

    I got the same problem. Any news? 

     

    tnx 

    • Post Points: 35
  • 04-30-2008 2:32 PM In reply to

    • blake05
    • Top 25 Contributor
    • Joined on 04-03-2008
    • Wisconsin
    • Posts 333
    • Points 5,930

    Re: Error using CodeSmith with a Sybase database

     Hello,

     I will look into this problem, and report back Smile

    Thanks

    -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 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems