CodeSmith Community
Your Code. Your Way. Faster!

Build Errors after Regenerating

Latest post 05-31-2007 4:33 PM by asmussen. 4 replies.
  • 05-29-2007 11:48 AM

    • asmussen
    • Top 200 Contributor
    • Joined on 11-12-2006
    • Posts 21
    • Points 675

    Build Errors after Regenerating

    After regenerating .nettiers code for an already working site the .dlls are not included and I get several build errors in VS 2005. All I did was add some foreign key to the database tables.

    Any ideas on what could have caused this?

     
    Thanks, Justin.
     

    • Post Points: 35
  • 05-29-2007 3:17 PM In reply to

    Re: Build Errors after Regenerating

    Hi Justin:

    In case you created a m2m relation then maybe then you are experiencing the problems mentioned in http://community.codesmithtools.com/forums/24645/ShowThread.aspx.

    I recently posted a patch trying to fix that in case it is indeed your problem.

     
    I hope it helps. Best regards.

    Nosferatus
     

    Best regards, Nosferatus
    • Post Points: 35
  • 05-29-2007 6:18 PM In reply to

    • asmussen
    • Top 200 Contributor
    • Joined on 11-12-2006
    • Posts 21
    • Points 675

    Re: Build Errors after Regenerating

    I can't tell if this is related to that issue or not.

    I get hundreds of errors like the following when I build the solution:

    Error    3    Could not load file or assembly 'CustomerDetailsManager_AAI.Web' or one of its dependencies. The system cannot find the file specified. 

    Error    43    Metadata file 'D:\Projects\CustomerDetailsManager_AAI\CustomerDetailsManager_AAI.Data\bin\Debug\CustomerDetailsManager_AAI.Data.dll' could not be found    CustomerDetailsManager_AAI.Data.SqlClient

    Error    230    'CustomerDetailsManager_AAI.Entities.CustomerDetails' does not contain a definition for 'CallCenterIDSource'    D:\Projects\CustomerDetailsManager_AAI\CustomerDetailsManager_AAI.Data\Bases\CustomerDetailsProviderBaseCore.generated.cs    643    13    CustomerDetailsManager_AAI.Data
     

    The references all exist but the actual .dll files do not exist.

    All I changed was the relationships between the tables. 

     
    Please help!

    Thanks, Justin.
     

     
          

     

    • Post Points: 35
  • 05-29-2007 11:27 PM In reply to

    Re: Build Errors after Regenerating

    Hi Justin:

    Looking at the errors you posted it seems that you have the problem related to the m2m relations mentioned in the other thread. If you want you can try to use the patch I posted there and see if that helps.

    Best regards.

     

    Best regards, Nosferatus
    • Post Points: 35
  • 05-31-2007 4:33 PM In reply to

    • asmussen
    • Top 200 Contributor
    • Joined on 11-12-2006
    • Posts 21
    • Points 675

    Re: Build Errors after Regenerating

    I have no idea what's going on here I applied the M2M patch and still get the same build errors. I am getting 15 errors and 18 warnings. I even set the generate M2M option to false.

    Again here's a sample of the output:

    Error    21    Metadata file 'D:\Projects\CustomerDetailsManager_AAI\CustomerDetailsManager_AAI.Entities\bin\Release\CustomerDetailsManager_AAI.Entities.dll' could not be found    CustomerDetailsManager_AAI.Data

    Error    23    Metadata file 'D:\Projects\CustomerDetailsManager_AAI\CustomerDetailsManager_AAI.Data\bin\Release\CustomerDetailsManager_AAI.Data.dll' could not be found    CustomerDetailsManager_AAI.Component

    Error    31    Could not load file or assembly 'CustomerDetailsManager_AAI.Entities' or one of its dependencies. The system cannot find the file specified.    D:\Projects\CustomerDetailsManager_AAI\WebServices\CustomerDetailsManager_AaiServices.asmx    2   

    Warning    17    Unreachable code detected    D:\Projects\CustomerDetailsManager_AAI\CustomerDetailsManager_AAI.Entities\QueuesBase.generated.cs    726    9    CustomerDetailsManager_AAI.Entities

     

    All the appropriate references are there as far as I can see.

    The only thing I changed was the relationships in the table then this happened. I then changed back to my old DB schema and I still get the errors.

    I am desperate! Any Ideas?

    Thanks, Justin.
     

     

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