Error Processing Node Resource Fileresource
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Castle Windsor Configuration Over Multiple Projects and unit testing up vote 0 down vote favorite 1 I have a solution with multiple projects and one of these projects is my service class which calls into the persistence manager. I would like to write a unit test as follows: [Test] public void Create_HappyPath_Success() { // Arrange UnitOfMeasure unitOfMeasure = new UnitOfMeasure(); unitOfMeasure.Code = "Some new unit of measure"; unitOfMeasure.DataOwner = 1; // Act this.UoMService.Create(unitOfMeasure); // Fails here as UoMService is null // Assert something } Now, I'm getting a null reference exception on this line: this.UoMService.Create(unitOfMeasure); // Fails here as UoMService is null I believe that it's due to the fact that Castle Windsor is not getting called and hence the UoMService isn't getting instantiated. My Castle Windsor application installer is defined in another project i.e. my ASP.NET MVC project. So my first question is whether it's possible to reuse that installer to run my Unit Tests. Now to get around this problem, I created a new installer in my unit test project by linking to the installer in my web project. Then I used the following code in my set up: [SetUp] public void ControllersInstallerTests() { this.containerWithControllers = new WindsorContainer(); IoC.Initialize(this.containerWithControllers); this.containerWithControllers.Install(FromAssembly.This()); } This time when I run the tests, I get the following error: SetUp : Castle.Windsor.Configuration.Interpreters.XmlProcessor.ConfigurationProcessingException : Error processing node resource FileResource: [] [] ----> Castle.Core.Resource.R
the wiki » This documentation is a work in progress.¶Let us know if some information is not clear, inaccurate or missing. Also feel free to update the wiki yourself. Page History: [MOVED] Using XML configuration Compare Page Revisions 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Current 66 http://stackoverflow.com/questions/7877894/castle-windsor-configuration-over-multiple-projects-and-unit-testing 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 http://stw.castleproject.org/(S(ta5wga45q0nwdif0d3vk0saf))/Windsor.History.aspx?Page=Windsor.XML-Registration-Reference&Revision=44 1 0 # Title Saved on Saved by Comment Current [MOVED] Using XML configuration 2015/06/10 16:53 Jonathon Rossi 66 [-] Using XML configuration 2015/06/09 09:07 Jonathon Rossi 65 Using XML configuration 2012/06/04 15:32 Patrick Steele Add componentActivatorType attribute 64 Using XML configuration 2012/06/04 15:32 Patrick Steele Add componentActivatorType attribute 63 Using XML configuration 2010/10/02 14:29 Krzysztof Koźmic 62 Using XML configuration 2010/10/02 14:27 Krzysztof Koźmic 61 Using XML configuration 2010/10/02 14:22 Krzysztof Koźmic 60 Using XML configuration 2010/10/02 14:18 Krzysztof Koźmic 59 Using XML configuration 2010/10/02 14:16 Krzysztof Koźmic 58 XML configuration reference 2010/06/12 00:28 Krzysztof Koźmic 57 XML configuration reference 2010/04/27 11:38 Krzysztof Koźmic 56 XML configuration reference 2010/04/27 11:27 Krzysztof Koźmic 55 XML configuration reference 2010/04/27 11:21 Krzysztof Koźmic 54 XML configuration reference 2010/04/27 11:17 Krzysztof Koźmic 53 XML configuration reference 2010/04/22 14:23 Krzysztof Koźmic 52 XML configuration reference 2010/04/22 14:21 Krzysztof Koźmic 51 XML configuration reference 2010/04/22 14:21 Krzysztof Koźmic 50 XML configuration Reference 2010/04/22 14:20 Krzysztof Koźmic 49 XML Registration Reference 2010/04/22 14:20 Krzysztof Koźmic 48 XML Registration Reference 2010/04/22 14:18 Krzysztof Koźmic 47 XML Registration Reference 2010/04/22 14:16 Krzysztof Koźmic 46 XML Registration Reference 2010/04/22 14:
clipboard Flag this post as https://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/14963-Xslt-error-on-all-xslt-macro-after-Backup-Restore spam? This post will be reported to the moderators https://sourceforge.net/p/castleproject/mailman/message/5236820/ as potential spam to be looked at Yes No These support forums are now closed for new topics and comments. Please head on over to http://eureka.ucommerce.net/ for support. David Dupont 61 posts 115 karma error processing points Nov 25, 2010 @ 12:03 0 Xslt error on all xslt macro after Backup / Restore uCommerce Support Hello, I've made an UCommerce Installation Locally and have confirgured Paypal payment on it (Ucommerce 1.1.1.0 + Ucommerce Store 1.0.1.3)Everything rocks locally then error processing node I've backed up the solution and have restored it on one of our servers.But since that there is a global issue on all XSLT Macros of the site and I get the usual error message : Error parsing XSLT file: \xslt\AllCatalogs[XSLT].xslt I've searched everywhere on the authors site and in this Support Section and it seems that the issue hasn't been encouter by anyone. When I look in the UmbracoLog Table I get the 2 following errors everytime I refresh the front shop page : 1 - Error processing node resource FileResource: [] [] System.Xml.XmlNode Process(Castle.Core.Resource.IResource)at Castle.Windsor.Configuration.Interpreters.XmlProcessor.XmlProcessor.Process(IResource resource)at Castle.Windsor.Configuration.Interpreters.XmlInterpreter.ProcessResource(IResource source, IConfigurationStore store)at Castle.Windsor.WindsorContainer..ctor(IConfigurationInterpreter interpreter)at Castle.Windsor.WindsorContainer..ctor(String xmlFile)at UCommerce.Infrastructure.ObjectFactory.GetContainer()at UCommerce.Infrastructure.ObjectFactory.get_Container()at UCommerce.Infrastructure.ObjectFactory.Resolve[T]()at UCommerce.Xslt.XsltLibrary.get_ClientContext()at UCommerce.Xslt.XsltLibrary.get_InProductCatalogGroupContext()at UCommerce.Xslt.CatalogLibrary.GetRootCategories(String catalogName)at UCommerce.Xslt.Library.<>c__DisplayClass6.
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse Castle Project Mailing Lists Castle Project Brought to you by: ayenderahien, hammett_, hconceicao, jonorossi Summary Files Reviews Support Wiki Mailing Lists Tickets ▾ Patches Bugs News castleproject-announcements castleproject-commits [castle-commits] [hammett commit: 1900]: /trunk/InversionOfControl/ [castle-commits] [hammett commit: 1900]: /trunk/InversionOfControl/ From: