4
Vote

cannot create any xslt file after installing C4U.

description

After digging into C4U instalation I came accross another issue with this error:
Could not load type CommerceForUmbraco.xsltExtensions.product (D:\inetpub\vhosts\bodomdesign.co.uk\subdomains\umbraco\httpdocs\bin\CommerceForUmbraco.xsltExtensions.dll) for XSLT extension D:\inetpub\vhosts\bodomdesign.co.uk\subdomains\umbraco\httpdocs\bin\CommerceForUmbraco.xsltExtensions.dll. Please check config/xsltExentions.config.

this affect umbraco itself so after installing commerce I cannot create any xslt file. I tried more instalations (with different scenarions and issues) but this stays always same.
xsltExentions.config file has this line:
<ext assembly="/bin/CommerceForUmbraco.xsltExtensions" type="CommerceForUmbraco.xsltExtensions.product" alias="ucProduct">

tried Umbraco v4.0.1 v4.0.2.1 with c4u v 1.0 or v1.1. no luck.
Thanks

Pavel

comments

psterling wrote Jul 13, 2009 at 7:05 PM

This is a simple fix in any installation - just update the 'alias' in xsltExentions.config to the alias in the corresponding XSLT files - 'c4u'

Gerryl wrote Aug 6, 2009 at 10:43 AM

I have the same problem. Actually there is no type CommerceForUmbraco.xsltExtensions.product. Changed alias to c4u didn't work.

When saving any commerce XSLT file, got the error:

(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)
at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)

On front end, can not go to cart.aspx and checkout.aspx, it redirects back to homepage.

Thanks.

psterling wrote Aug 6, 2009 at 2:59 PM

Seems you have a syntax error in your XSLT...please verify it is correct and/or remove if you are not using the XSLT macros.

You are missing the config entries for your domain - see the /config/commerce/localhost.config and /web.config for guidance.

-Paul

eltatane wrote Aug 31, 2009 at 11:24 AM

I just updated in config/xsltExentions.config:


by


CommerceForUmbracoExtension seem to be the right class name.