c1-cms

Manually Create composite.generated.dll


I'm new to composite C1 CMS and am trying to update a site from 4.1 to 4.2.

I'm running into some build errors because the 4.2 generated.dll file doesn't know about the custom data types etc that were in the 4.1 generated.dll.

Do you have to create the generated.dll manually somehow?


Solution

  • The Composite.Generated.dll is usually regenerated when the website restarts. The quickest way to fix it would be to:

    1. put the old DLL back
    2. start the site
    3. restart the website in IIS

    If the DLL isn't updated, there should be errors in the log files

    Way #2:

    1. Delete the /bin/Composite.Generated.dll

    2. Temporary remove DLL-s and App_Code files that were referencing classes from Composite.Generated.dll

    3. Start and restart the website
    4. Check the log files for errors if the file wasn't re-created