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.3592Stacktrace: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=153c437aebb7c620FusionLog=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.ListDictionaryInternalAssemblies: 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
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/ .NetTiers team | Visit http://www.nettiers.com
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
Could you try to stop the "indexing service", and then attempt to uninstall/install the file in the GAC.
Blake - I will try your suggestion later this afternoon, and let you know how it goes.
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.
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.
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,
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
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?
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.
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/
Sweet :)
-Blake