Hi again, since I'm quite new to VS08, C# and Castle I started programming by linking to the dll files at "C:\Programm Files\Castle Project". Today I wanted to do it better by creating a lib folder within the project directory.
I seemed to have found all files necessary, all unit tests were green. Then I renamed the NUnit and Castle folder at C:\Programm Files ... in order to make sure it worked. Then I realised, that there was no link to nvelocity.cll. I copied it into my lib folder and there it was: ----------- Unable to cast object of type 'System.Collections.ArrayList' to type 'System.Collections.Generic.List`1[System.String]'. Stack Trace: [InvalidCastException: Unable to cast object of type 'System.Collections.ArrayList' to type 'System.Collections.Generic.List`1[System.String]'.] Commons.Collections.ExtendedProperties.GetStringList(String key) +115 NVelocity.Runtime.Resource.Loader.AssemblyResourceLoader.Init (ExtendedProperties configuration) +61 NVelocity.Runtime.Resource.ResourceManagerImpl.Initialize (IRuntimeServices rs) +465 NVelocity.Runtime.RuntimeInstance.initializeResourceManager() +468 NVelocity.Runtime.RuntimeInstance.Init() +118 NVelocity.Runtime.RuntimeInstance.Init(ExtendedProperties p) +78 NVelocity.App.VelocityEngine.Init(ExtendedProperties p) +55 Castle.Components.Common.TemplateEngine.NVelocityTemplateEngine.NVelocityTemplateEngine.BeginInit () +1070 Castle.MonoRail.ActiveRecordScaffold.ScaffoldingSupport.InitializeTemplateEngine () +99 Castle.MonoRail.ActiveRecordScaffold.ScaffoldingSupport.Process (Controller controller) +85 Castle.MonoRail.Framework.ControllerLifecycleExecutor.ProcessScaffoldIfPresent () +140 Castle.MonoRail.Framework.ControllerLifecycleExecutor.InitializeController (String areaName, String controllerName, String actionName) +125 Castle.MonoRail.Framework.EngineContextModule.CreateControllerAndRunStartRequestFilters (Object sender, EventArgs e) +628 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 ----------- Everything worked well this morning. What did I do wrong? Did I miss any files in my lib directory? These files are currently inside: Castle.ActiveRecord.dll Castle.Components.Binder.dll Castle.Components.Binder.dll.VisualState.xml Castle.Components.Common.EmailSender.dll Castle.Components.Common.TemplateEngine.dll Castle.Components.Common.TemplateEngine.NVelocityTemplateEngine.dll Castle.Components.Validator.dll Castle.Core.dll Castle.MonoRail.ActiveRecordScaffold.dll Castle.MonoRail.ActiveRecordSupport.dll Castle.MonoRail.Framework.dll Castle.MonoRail.Framework.Views.NVelocity.dll FirebirdSql.Data.FirebirdClient.dll Iesi.Collections.dll log4net.dll NHibernate.dll NHibernate.Mapping.Attributes.dll NVelocity.dll I''ve found out, that it only affects controllers using scaffolding. The others just work fine ... Best regards, Flo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
