THESE FORUMS ARE NOW FROZEN
Please choose "Forums" from the Main menu of www.entityspaces.net to get to our new forums.

error: "The type or namespace name 'EntitySpaces' could not be found" after installing new version of MyGeneration(1.3).

rated by 0 users
This post has 5 Replies | 1 Follower

Top 50 Contributor
Posts 41
mfreidge Posted: 12-27-2007 10:43 PM

I've installed a new version of MyGeneration(1.3).
It didn't have EntitySpaces templates, that I've copied manually from old C:\Program Files\MyGeneration\Templates.
But when I try to generate EntitySpaces classes, it gives an error: "The type or namespace name 'EntitySpaces' could not be found" .

OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2
EXE Version: 1.3.0.3
-----------------------------------------------------------------
Date: 28/12/2007 2:06:00 PM
TemplateFileName: C:\Program Files\MyGeneration13\Templates\EntitySpaces\C#\Custom\EntitySpaces_C#_Custom_Query.csgen
TemplateIdentifier: 88679b53-bced-4ffc-86f1-28b4b455cec3
Class: Template
IsWarning: False
IsRuntime: False
IsTemplateCodeSegment: True
ErrorNumber: CS0246
SourceFile: C:\Program Files\MyGeneration13\Templates\EntitySpaces\C#\Custom\EntitySpaces_C#_Custom_Query.csgen
SourceLine: c:\Documents and Settings\mfreidgeim\Local Settings\Temp\qtxus9ak.0.cs
LineNumber: 135
ColumnNumber: 9
Message: The type or namespace name 'EntitySpaces' could not be found (are you missing a using directive or an assembly reference?)
Detail: 

Should I re-install EntitySpaces ? 

Note:that MyGeneration 1.2 working fine.

By the way, I've tried to put this post as a comment to blog post http://www.entityspaces.net/blog/CommentView,guid,66d5bfbd-d35b-46ea-ba8b-a3153a4a128f.aspx#commentstart, but it wasn't saved with javascript error Line: 376
Error: 'WebForm_PostBackOptions' is undefined

Michael Freidgeim Blog: http://geekswithblogs.net/mnf/
Top 10 Contributor
Posts 184

I downloaded and am testing MyGeneration in combination with EntitySpaces. When I downloaded the trial, there was a version for 1.2 and (at that time) a version for 1.3 which was a Beta.

I can only assume that you need to download a version of Entity Spaces that aligns with the version of MyGeneration you happen to be using or there would not be two downloads. Of course, this could be a license issue too, but I am still working on the 45 day trial.

Did you try downloading the ES version for MyGeneration V 1.3?

You bring up another great question: What happens on version upgrades? I have significantly customized my templates and hope that my changes are kept throughout the various version upgrades.

 

 

 

 

Top 10 Contributor
Posts 1,675

MyGeneration 1.3.x can be installed side-by-side with 1.2.x. The main reason there are two EntitySpaces installers is that esPlugIn.dll needed to be recompiled to work with the MyGeneration 1.3 plugin architecture. Just manually copying the templates is not enough to get EntitySpaces to work. You should run the EntitySpaces 1.3 installer. It also looks for the new registry keys for MyGeneration 1.3, so we know where to install esPlugin, esPluginSettings.xml, and the templates.

 

David Neal Parsons
www.entityspaces.net

Top 10 Contributor
Posts 1,675

TrevorW,

MyGeneration has gone to great pains to make 1.3.x back wards compatible with the huge template library available for 1.2. We did not make any template or runtime/redistributable assembly changes in the EntitySpaces version installed by our Developer 1.3 Beta installer. MyGeneration 1.3.0.3 (the latest GA release available from the MyGeneration site, or Downloads.com) seems to have fixed the issues with MySQL generation.

EntitySpaces has always over-written its templates whenever it is installed. Before modifying our templates, you should,

At a minimum:

Open the template properties pane, and click the New Guid button.
Save As with a different name.

We also recommend:

Create your own folder under the MyGeneration Templates folder.
Change the Namespace in the properties pane to match the folder you created. (Do not use EntitySpaces).
When you Save As, save the modified template in the new folder.

MyGeneration recognizes templates by Guid, not by template name or location. Each template must have a unique identifier. While we try to keep such impact to a minimum, it is possible that an EntitySpaces install would require uninstalling a prior version, and deleting the EntitySpaces Program and Templates folders. That is certainly recommended when transitioning from the Trial to the purchased version of Developer.

If you have followed the above practices for EntitySpaces under MyGeneration 1.2, then you should be able to install MyGeneration 1.3, side-by-side, install the EntitySpaces Developer version for 1.3, and copy your modified templates folder over to the new templates location. At which point, you can continue development under ES/MyGen 1.2, while you test ES/MyGen 1.3.

David Neal Parsons
www.entityspaces.net

Top 50 Contributor
Posts 41

Hi David,

David.Parsons:

there are two EntitySpaces installers....

You should run the EntitySpaces 1.3 installer.

I am running Release 2007.0.0913.0. Do you mean that to use MyGeneration 1.3.x I have to install Release 2007.1.*, which has separate EntitySpaces 1.3 installer? 
If it is correct, this info should be added to blog post http://www.entityspaces.net/blog/2007/12/26/MyGenerationCodeGenerator1303ReleasedItsFree.aspx

Michael Freidgeim Blog: http://geekswithblogs.net/mnf/
Top 10 Contributor
Posts 3,881
Yes, that is correct, you need to install our ES release for MyGen 1.3. We will update the blog post as well.

EntitySpaces | Twitter | BLOG | Please honor our Software License

Page 1 of 1 (6 items) | RSS
Copyright © 2005 - 2009, EntitySpaces, LLC