Xslt error on all xslt macro after Backup / Restore
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 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 :
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.<GetRootCategories>b__5() at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
2 -
File H:\Website\wwwroot\UCommerce\Website\umbraco\ucommerce\configuration\Components.config could not be found Void CheckFileExists(System.String) at Castle.Core.Resource.FileResource.CheckFileExists(String path) at Castle.Core.Resource.FileResource.CreateStreamFromPath(String resourcePath, String rootPath) at Castle.Core.Resource.FileResource.<>c__DisplayClassa.<.ctor>b__8() at Castle.Core.Resource.AbstractStreamResource.GetStreamReader() at Castle.Windsor.Configuration.Interpreters.XmlProcessor.XmlProcessor.Process(IResource resource)
If you look closely on the second message it seems that there is an absolute reference to a local file :
That path is a path available on my local machine so I don't understand why something is looking on file at that location.
Another specificity I've used a host header on my local installation but I don't think it can be the cause.
I've disabled authentication on the server to be sure it's not linked to that.
I'can't find where to look but I really need this environnement working since we have mutiple clients interested in.
Another point is that everything else works except in the UCommerce Section where I can't see the children of "ProductCatalog" and "Orders" Node although the content is present in database.
All components of uCommerce are registered in a central XML file called Components.config. The path to the file is registered in web.config during install. If you look for the runtime element in web.config you'll find the setting. You need to modify it to match your current environment.
Thanks you very much Soren. for the resolution and for the quickness. We will come back to you guys when we will be ready to buy Licences or for another question :)
You're most welcome. By the way you might be interested in knowing that for new releases of uCommerce I've changed the behavior of the installer so that it uses a relative path instead of the absolute one. It means that you won't see this behavior when moving from one server to another.
Xslt error on all xslt macro after Backup / Restore
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 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 :
If you look closely on the second message it seems that there is an absolute reference to a local file :
That path is a path available on my local machine so I don't understand why something is looking on file at that location.
Another specificity I've used a host header on my local installation but I don't think it can be the cause.
I've disabled authentication on the server to be sure it's not linked to that.
I'can't find where to look but I really need this environnement working since we have mutiple clients interested in.
Another point is that everything else works except in the UCommerce Section where I can't see the children of "ProductCatalog" and "Orders" Node although the content is present in database.
Thanks per advance.
David
Hi David,
All components of uCommerce are registered in a central XML file called Components.config. The path to the file is registered in web.config during install. If you look for the runtime element in web.config you'll find the setting. You need to modify it to match your current environment.
Deleted contents of duplicate reply.
Thanks you very much Soren. for the resolution and for the quickness.
We will come back to you guys when we will be ready to buy Licences or for another question :)
Regards
You're most welcome. By the way you might be interested in knowing that for new releases of uCommerce I've changed the behavior of the installer so that it uses a relative path instead of the absolute one. It means that you won't see this behavior when moving from one server to another.
is working on a reply...