CodeSmith Community
Your Code. Your Way. Faster!

Cannot use EntitySpaces templates

rated by 0 users
This post has 11 Replies | 2 Followers

Not Ranked
Posts 7
Points 205
shanlin Posted: 08-03-2008 12:31 PM

 

I currently cannot use the EntitySpaces templates in CodeSmith v4.1.4.  I have already turned off UAC, and reinstalled both applications (as Administrator).  The error in CodeSmith says that it cannot load the EntitySpaces.MetadataEngine.dll file from the GAC but the file was installed.

Any help would be greatly appreciated.

Thanks,
Steve

Config:
- Vista x64
- EntitySpaces v2008.1.623.0

Error:
Message:
FileNotFoundException (CodeSmith.Engine.Util.ResolveAssemblyPath) v4.1.4.3592
Stacktrace:
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.LoadWithPartialNameInternal(String partialName, Evidence securityEvidence, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadWithPartialName(String partialName)
at CodeSmith.Engine.Util.ResolveAssemblyPath(String assemblyName)

Message=Could not load file or assembly 'EntitySpaces.MetadataEngine, Version=2008.1.623.0, Culture=neutral, PublicKeyToken=153c437aebb7c620' or one of its dependencies. The system cannot find the file specified.
FileName=EntitySpaces.MetadataEngine, Version=2008.1.623.0, Culture=neutral, PublicKeyToken=153c437aebb7c620
FusionLog=WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Data=System.Collections.ListDictionaryInternal
Assemblies:
   mscorlib, 2.0.50727.3031
   CodeSmithStudio, 4.1.4.3592
   CodeSmith.Engine, 4.1.4.3592
   System, 2.0.50727.3031
   System.Windows.Forms, 2.0.50727.3031
   System.Drawing, 2.0.50727.3031
   CodeSmith.Gui, 4.1.4.3592
   Microsoft.VisualBasic, 8.0.50727.3031
   System.Runtime.Remoting, 2.0.50727.3031
   System.Configuration, 2.0.50727.3031
   System.Xml, 2.0.50727.3031
   ActiproSoftware.SyntaxEditor.Net20, 3.1.225.0
   ActiproSoftware.Shared.Net20, 1.0.94.0
   ActiproSoftware.WinUICore.Net20, 1.0.94.0
   ActiproSoftware.DockableWindow, 2.0.209.0
   ActiproSoftware.TabStripPanel, 2.0.209.0
   Interop.SHDocVw, 1.1.0.0
   Accessibility, 2.0.50727.3031
   SchemaExplorer, 4.1.4.3592
   System.Web, 2.0.50727.3031
   System.Data, 2.0.50727.3031
   System.Design, 2.0.50727.3031
   System.Data.SqlXml, 2.0.50727.3031
   System.Transactions, 2.0.50727.3031
   System.Security, 2.0.50727.3031
   System.Web.Services, 2.0.50727.3031

Top 10 Contributor
Posts 1,401
Points 51,130

Hello,

Did you follow the Steps (MANUAL GAC (GLOBAL ASSEMBLY CACHE) INSTALLATION) on Page 26 of the EntitySpaces_CodeSmith_GetStarted.pdf?

Thanks

-Blake Niemyjski

Blake Niemyjski

CodeSmith Tools, LLC. Software Development Engineer

Blog: http://windowscoding.com/blogs/blake/

----------------------------------------------------------------------
 Member of the .NetTiers team | Visit http://www.nettiers.com
----------------------------------------------------------------------

  • | Post Points: 35
Not Ranked
Posts 7
Points 205

Blake - yes, after reinstalling a couple times, I tried copying the file to the C:\Windows\Assembly folder.  It appears that the file was installed, but it wouldn't load in CodeSmith.  I also tried to uninstall/install the file in the GAC, but I got an 'Access Denied' error.

BTW - I get a similar error in CS5 Beta 2.

Thanks,

Steve

 

Top 10 Contributor
Posts 1,401
Points 51,130

Hello,

Could you try to stop the "indexing service", and then attempt to uninstall/install the file in the GAC.

Thanks

-Blake Niemyjski

Blake Niemyjski

CodeSmith Tools, LLC. Software Development Engineer

Blog: http://windowscoding.com/blogs/blake/

----------------------------------------------------------------------
 Member of the .NetTiers team | Visit http://www.nettiers.com
----------------------------------------------------------------------

  • | Post Points: 55
Not Ranked
Posts 7
Points 205

Blake - I will try your suggestion later this afternoon, and let you know how it goes.

Thanks,

Steve

Not Ranked
Posts 7
Points 205

Blake - I looked for the Indexing Service in Vista, but couldn't find it.  I already tried a service called Windows Search, but that didn't help.

Thanks,

Steve

Top 10 Contributor
Posts 1,401
Points 51,130

Hello,

The problem is more than likely permissions related, I would check out this post, and lastly this google query to see what works for you. Please post back the solution as I'm sure someone will run into the same problem as you. I'm running roughtly the same configuration as you and didn't have any problems.

If I come across anything I'll be sure to update this post.

Thanks

-Blake Niemyjski

Blake Niemyjski

CodeSmith Tools, LLC. Software Development Engineer

Blog: http://windowscoding.com/blogs/blake/

----------------------------------------------------------------------
 Member of the .NetTiers team | Visit http://www.nettiers.com
----------------------------------------------------------------------

  • | Post Points: 80
Not Ranked
Posts 7
Points 205

Blake – thanks for all your help with this issue.   I am still getting acquainted with Vista, so I am not familiar with changing NTFS ACLs in Vista.  Could you help me out with that?

 

Thanks again,

Steve

 

 

From: codesmith.general@codesmithsupport.com [mailto:codesmith.general@codesmithsupport.com] On Behalf Of blake05
Sent: Wednesday, August 06, 2008 2:21 PM
To: shanlin@alltel.net
Subject: Re: [CodeSmith General Support] Cannot use EntitySpaces templates

 

Hello,

The problem is more than likely permissions related, I would check out this post, and lastly this google query to see what works for you. Please post back the solution as I'm sure someone will run into the same problem as you. I'm running roughtly the same configuration as you and didn't have any problems.



  • | Post Points: 5
Not Ranked
Posts 7
Points 205

Blake - I ran the Fusion Log Viewer, and the CodeSmith Studio is looking for a SchemaExplorer.XmlSerializers.dll file which it [and I] cannot find.  Can you verify that the file should have been installed and how we can resolve the issue?

Thanks,

Steve

  • | Post Points: 35
Top 10 Contributor
Posts 1,401
Points 51,130

Hello,

I have responded to your tickets. I checked and the SchemaExplorer.XmlSerializers assembly has never shipped with CodeSmith. I'm guessing that this is a 3rd party addin. I searched the community site and was unable to find anything that points to this assembly.

Thanks

-Blake Niemyjski

Blake Niemyjski

CodeSmith Tools, LLC. Software Development Engineer

Blog: http://windowscoding.com/blogs/blake/

----------------------------------------------------------------------
 Member of the .NetTiers team | Visit http://www.nettiers.com
----------------------------------------------------------------------

Not Ranked
Posts 7
Points 205

Blake - 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/

Thanks,

Steve

  • | Post Points: 55
Top 10 Contributor
Posts 1,401
Points 51,130

Sweet :)

-Blake

Blake Niemyjski

CodeSmith Tools, LLC. Software Development Engineer

Blog: http://windowscoding.com/blogs/blake/

----------------------------------------------------------------------
 Member of the .NetTiers team | Visit http://www.nettiers.com
----------------------------------------------------------------------

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