CodeSmith Community
Your Code. Your Way. Faster!

Can't find netTiers_cst.cs

Latest post 09-24-2007 7:40 AM by alex_b. 2 replies.
  • 08-28-2007 8:47 PM

    • larzeb
    • Top 200 Contributor
    • Joined on 11-04-2004
    • Posts 20
    • Points 460

    Can't find netTiers_cst.cs

     I just downloaded NetTiers 2.2.0.603 and CodeSmith 4.1.2. I copied the NetTiers over to a project directory and double-clicked it. I got the following message:

    Could not find a part of the path 'C:\Documents and Settings\lars\Application Data\CodeSmith\v4.1\Template Cache\NetTiers_cst.cs' (DirectoryNotFoundException).

     So I am stuck. Does anyone know what might be causing this and how to fix it?

     Thanks, Lars

     

    • Post Points: 35
  • 09-24-2007 6:49 AM In reply to

    • alex_b
    • Not Ranked
    • Joined on 08-16-2007
    • Farnborough, UK
    • Posts 4
    • Points 50

    Re: Can't find netTiers_cst.cs

    Hi Lars,

    I have had the same problem, only mine started as soon as I paid for a Standard Edition license after using the free trial.  The standard edition does not use the template cache whereas the professional one does.  This means that for s standard edition license, the 'Template Cache' directory is not present in the 'Application Data\CodeSmith\v4.1' directory (in fact it is even deleted if you create it manually).

    I have raised a 'premium support' call and will post the answer here when I get it.

     System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Documents and Settings\alex.brooker\Application Data\CodeSmith\v4.1\Template Cache\NetTiers_cst.cs'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
       at System.IO.StreamWriter.CreateFile(String path, Boolean append)
       at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
       at System.IO.StreamWriter..ctor(String path)
       at CodeSmith.Engine.CodeTemplateCompiler.Compile(String outputPath, Boolean forceRecompile)
       at CodeSmith.Gui.CodeTemplateGenerator.a(String A_0, String A_1, String A_2, Boolean A_3, Boolean A_4)

     cheers,

     

    Alex 

    ----------------------------------------------------------------- adding value
    • Post Points: 5
  • 09-24-2007 7:40 AM In reply to

    • alex_b
    • Not Ranked
    • Joined on 08-16-2007
    • Farnborough, UK
    • Posts 4
    • Points 50

    Re: Can't find netTiers_cst.cs

    Codesmith support replied very quickly with the solution:

     From a command prompt enter:

    cs /resetconfig

    and enter 'y' to confirm.  Warning, you will lose all user config settings.

     

    cheers,

     

    Alex
     

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