Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sauritas 37 posts 57 karma points
    Nov 12, 2010 @ 10:19
    sauritas
    0

    Xslt error with Blog4Umbraco and UComment

    Hi!

     

    Have you try to run UComment and Blog4Umbraco. When I install UComment, the comment from for the blog doesn't run. It generates a xslt exception. If I debug I get the message at the bottom of this post. It says that it is not clear if AjaxCommentForm is being used by UComment.DLL or UMlaut.Umb.Blog.DLL.

    In my xsltextensions.config file I have this:


      <ext assembly="\bin\Umlaut.Umb.Blog" type="Umlaut.Umb.Blog.BlogLibrary" alias="BlogLibrary">
      </ext>
     
      <ext assembly="\bin\UComment" type="UComment.XSLTLibrary" alias="UCommentLibrary">
      </ext>

    And in my restextension.config I have:

    <ext assembly="/bin/Umlaut.Umb.Blog" type="Umlaut.Umb.Blog.Library.Base" alias="Blog4Umbraco">
        <permission method="CreateComment" returnXml="false" allowAll="true" />
        <permission method="GetGravatarImage" returnXml="false" allowAll="true" />
      </ext>
      <ext assembly="/bin/UComment" type="UComment.Library.Base" alias="UComment">
        <permission method="CreateComment" returnXml="false" allowAll="true" />
        <permission method="GetGravatarImage" returnXml="false" allowAll="true" />

     

    So I think the problem might be method="CreateComment" and method="GetGravatarImage"

     

    Error creating usercontrol (/usercontrols/Blog4Umbraco/AjaxCommentForm.ascx)
    El tipo 'Umlaut.Umb.Blog.usercontrols.AjaxCommentForm' es ambiguo: podría proceder del ensamblado 'c:\inetpub\wwwroot\bin\UComment.DLL' o del ensamblado 'c:\inetpub\wwwroot\bin\Umlaut.Umb.Blog.DLL'. Especifique el ensamblado explícitamente en el nombre de tipo.
      en System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
      en System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath)
      en System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
      en System.Web.UI.TemplateParser.ParseInternal()
      en System.Web.UI.TemplateParser.Parse()
      en System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath)
      en System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
      en System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
      en System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
      en System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
      en System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
      en System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
      en System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
      en System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
      en System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
      en System.Web.UI.TemplateControl.LoadControl(String virtualPath)
      en umbraco.macro.loadUserControl(String fileName, Hashtable attributes, Hashtable pageElements) en d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\macro.cs:línea 1134

    Any Ideas?

     

    Thanks!

  • sauritas 37 posts 57 karma points
    Nov 12, 2010 @ 10:25
    sauritas
    0

    I am running Umbraco v4.0.3, ASP.NET 3.5, IIS v5.1

  • John Walker 43 posts 66 karma points
    Dec 03, 2010 @ 10:19
    John Walker
    0

    Hi,

    Did you ever manager to resolve this issue as Im having the same problem currently?

  • sauritas 37 posts 57 karma points
    Dec 03, 2010 @ 10:36
    sauritas
    0

    No, I have not solved this problem yet... :(

  • John Walker 43 posts 66 karma points
    Dec 03, 2010 @ 10:45
    John Walker
    0

    I have just managed to solve the issue on my project, it looks as though it is a problem with the name space used for the contact forms.

    My xsltextensions.config file I have this:

      <ext assembly="Umlaut.Umb.Blog" type="Umlaut.Umb.Blog.BlogLibrary" alias="BlogLibrary">
      </ext>
      <ext assembly="UComment" type="UComment.XSLTLibrary" alias="UCommentLibrary">
      </ext>

    Then I update the BlogPost.master macros to use the uComments list of posts and form

    <umbraco:Macro Alias="UCommentListComments" runat="server"></umbraco:Macro>

    <umbraco:Macro Alias="UCommentForm" runat="server"></umbraco:Macro>

    It then works fine and now I only need to make my styling amends in one file.

  • sauritas 37 posts 57 karma points
    Dec 03, 2010 @ 14:03
    sauritas
    0

    It runs!!!!

     

    But, I have now more problems concerning with the instant view of that comment. I mean... when I post a comment it appears at the moment... but not now :(

     

    Other thig is how I can see the comments in the ucomment page...

     

    I will investigate!!!!!

     

    Thanks John!!!

  • James 3 posts 23 karma points
    Dec 11, 2010 @ 20:44
    James
    0

    AM having this problem to

     

    Error parsing XSLT file: \xslt\UCommentListComments.xslt

     

    I have run "?umbDebugShowTrace=true" and got this part in red

     

     

    umbracoMacro InnerException    Could not load assembly C:\HostingSpaces\sosociet\sosociety.com\wwwroot\bin\bin\UComment.dll for XSLT extension UCommentLibrary. Please check config/xsltExentions.config.
    Could not load assembly C:\HostingSpaces\sosociet\sosociety.com\wwwroot\bin\bin\UComment.dll for XSLT extension UCommentLibrary. Please check config/xsltExentions.config.
      at umbraco.macro.GetXsltExtensions()
      at umbraco.macro.AddMacroXsltExtensions()
      at umbraco.macro.AddXsltExtensions()
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt)
      at umbraco.macro.loadMacroXSLT(macro macro, Hashtable attributes, Hashtable pageElements)    0.0091524    0.000747
    umbracoMacro InnerException    Could not load file or assembly 'file:///C:\HostingSpaces\sosociet\sosociety.com\wwwroot\bin\bin\UComment.dll' or one of its dependencies. The system cannot find the file specified.
    Could not load file or assembly 'file:///C:\HostingSpaces\sosociet\sosociety.com\wwwroot\bin\bin\UComment.dll' or one of its dependencies. The system cannot find the file specified.
      at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
      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.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)
      at System.Reflection.Assembly.LoadFrom(String assemblyFile)
      at umbraco.macro.GetXsltExtensions()    0.0093759    0.000224

     

    could someone help me please to resolve the problem thx

  • sauritas 37 posts 57 karma points
    Dec 13, 2010 @ 17:36
    sauritas
    0

    Hi!

     

    I am not an expert, but it seems you have a problem in the file xsltExentions.config. In this post you can see what it should look like.

    Also, you can see the forum posts of UComment here http://our.umbraco.org/projects/collaboration/ucomment/using-ucomment (I think the URL that is in this forum is bad linked or something...).

     

    Hope this help you!

  • Peter 89 posts 160 karma points
    Feb 18, 2011 @ 01:20
    Peter
    0

    If I had karma i'd hi five big time!

    Lovely . beautiful. thank you.

Please Sign in or register to post replies

Write your reply to:

Draft