The EntitySpaces Community

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

Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

Last post 08-06-2008, 9:50 AM by SteveH. 10 replies.
Sort Posts: Previous Next
  •  08-04-2008, 7:25 PM 10549

    Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    I recently upgraded my machine to Vista x64, and now I cannot use the EntitySpaces templates in CodeSmith.  I have tried the following without success.

    1.  Installed EntitySpaces with the Administrator account.

    2.  Stopped the Windows Search service to uninstall/install EntitySpaces.MetadataEngine.dll in the GAC.

    3.  Copied the EntitySpaces.MetadataEngine.dll file to CodeSmith's bin folder.

    Any help with this would be greatly appreciated.

    Thanks,

    Steve

    Filed under: ,
  •  08-04-2008, 9:51 PM 10553 in reply to 10549

    Re: Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    Have you tried running CodeSmith as Administrator and generating?
    David Neal Parsons
    www.entityspaces.net
  •  08-05-2008, 4:53 AM 10557 in reply to 10553

    Re: Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    David - there wasn't an option to run the installer or CodeSmith as the administrator.

    Thanks,

    Steve

    Filed under: ,
  •  08-05-2008, 5:24 AM 10558 in reply to 10557

    Re: Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    Hi Steve

    To run as an administrator you need to right click the exe file (it may work with the shortcut too - not sure) and select the "Run as Administrator" option - this elevates the priveleges that the app runs under. 

    Cheers

    Martin

  •  08-05-2008, 5:58 AM 10559 in reply to 10558

    Re: Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    Good morning, Martin.

    I tried your suggestion but I was unsuccessful. 

    Thanks,

    Steve

    Filed under: ,
  •  08-05-2008, 6:05 AM 10560 in reply to 10559

    Re: Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    Hi Steve

    Is the Metadata dll actually installed in the GAC? I see from your post on the codesmith forum that you got an Access Denied message when you tried to do that - did you manage to get past that and install ok in the GAC?

  •  08-05-2008, 6:20 AM 10561 in reply to 10560

    Re: Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    Also, having just done a quick google, the following might help

    Firstly check the following blog post which has some very useful info in it:

    http://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx

    Secondly, in order to trouble shoot this, I would:

    1) turn on Assembly Binding logging to see where Codesmith is trying to locate the dll in case that offers any assistance (instructions on how to do that are in the above post)

    2) Use the log viewer to see the results of 1) - see: http://msdn.microsoft.com/en-us/library/e74a18c4(VS.80).aspx for that

    3) There is a comment in the blog post about not checking the GAC for assemblies where the full name isn't given (your error message stack trace shows a call to System.Reflection.Assembly.LoadWithPartialNameInternal so it might not be looking in the GAC anyway) - if that's the case then finding out where it IS looking may help you know where the dll needs to sit

    Hope that helps

    Martin

  •  08-05-2008, 6:37 PM 10579 in reply to 10561

    Re: Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    You can also throw the EntitySpaces.MetadataEngine.dll in the CodeSmith\Bin folder, that's how we ran it before we started installing it in the GAC.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  08-05-2008, 9:00 PM 10580 in reply to 10579

    Re: Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    I see in step (3) of your original post, that you already tried that. When you do, do you get the same FileNotFoundException as in your post on the CodeSmith forums, or does it change to a BadImageFormatException?
    David Neal Parsons
    www.entityspaces.net
  •  08-05-2008, 9:09 PM 10581 in reply to 10580

    Re: Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    Also, at what point does the error occur? Can you see the template UI, or connect to a database? Which database are you using?
    David Neal Parsons
    www.entityspaces.net
  •  08-06-2008, 9:50 AM 10600 in reply to 10581

    Re: Cannot use EntitySpaces 2008 templates in CodeSmith 4.1.4

    I found a solution for my issue.  Once I ran the command listed the article listed below, the EntitySpaces templates functioned correctly in CodeSmith Studio.

    http://forums.msdn.microsoft.com/en-US/phoenix/thread/9a43e9a1-a744-4a1a-bb34-3604254c126b/

View as RSS news feed in XML