The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Unable to generate code

Last post 05-24-2008, 4:03 PM by steveo. 2 replies.
Sort Posts: Previous Next
  •  05-24-2008, 2:43 PM 9446

    Unable to generate code

    I have Entity Spaces 2007.1.1210, and MyGeneration 1.3.0.3.

    I generated Generated and Custom classes for a database in Feb 2008.  Today I made a database change and tried to regenerate the Generated classes.  It is likely that I have not used MyGeneration or Entity Spaces since I used it in February.

    When I try to generate new Generated classes using the MyGeneration engine and the Generated Classes master (VB.NET) template I get the following error:

    The type or namespace name 'EntitySpaces' could not be found (are you missing a using directive or an assembly reference?)

    I have spent the last 2 hours trying to figure out what I am missing.  I have no idea what could have changed since February, since I have probably not been in the program since then.  This is not how I planned to spend my time today, so I am kind of annoyed.  Maybe I am dense, but the error message has not provided me any guidance.  Where would I put a using directive or an assembly reference?

    I have reinstalled MyGeneration and Entity Spaces, but that did not change anything.  I tried to run several other templates under the Entity Spaces folder, including ones in C#, Example, and VB folders.  All get the same error.

    I would appreciate any guidance in getting this to work again.

    Thank you.

  •  05-24-2008, 3:15 PM 9447 in reply to 9446

    Re: Unable to generate code

    These are the reasons that I remember for that error:

    1. You didn't use the EntitySpaces installer (after) installing MyGeneration.

    2. You are using Version 1.3 of MyGeneration and the version of EntitySpaces designed for 1.2, or vice versa. Please, make sure you are using matching versions (download and install the correct version of each).

    3. You modified a template and removed the reference to the assemblies or the using statement.

    From what you describe, I would suspect option #2.

    Trevor

  •  05-24-2008, 4:03 PM 9448 in reply to 9447

    Re: Unable to generate code

    Trevor,

    Thank you for your reply.  Re #2: I am using the latest (I believe) of both MyGeneration and Entity Spaces.  Re #3: I have not updated any templates, so that should not be an issue.

    Re #1: I had reinstalled both MyGeneration and Entity Spaces out of despiration, but it had not worked.  I do not recall which order I installed them, so I reran the Entity Spaces intallation again, and now it is working.  Perhaps I reinstalled Entity Spaces before MyGeneration.

    Anyway, its working now.  Thanks for your reply.  I don't know why, but it fixed my problem.

    Thanks,
    Steve

View as RSS news feed in XML