C# Biztalk自定义functoid映射中出现非逻辑错误

C# Biztalk自定义functoid映射中出现非逻辑错误,c#,dictionary,customization,biztalk,C#,Dictionary,Customization,Biztalk,我开始为biztalk构建一些自定义日期functoid 我部署了自定义functoid类,并将其添加到biztalk映射器中的自定义functoid列表中 我的映射如下所示: 你能帮我吗?我真的不知道问题出在哪里 我已经建立了一个自定义functoid,它可以正常工作。它将customdatetime转换为c#datetime并工作,除了名称和functoid id之外,它的构建几乎相同 已解决: SetExternalFunctionName(GetType().Assembly.Full

我开始为biztalk构建一些自定义日期functoid

我部署了自定义functoid类,并将其添加到biztalk映射器中的自定义functoid列表中

我的映射如下所示:

你能帮我吗?我真的不知道问题出在哪里

我已经建立了一个自定义functoid,它可以正常工作。它将customdatetime转换为c#datetime并工作,除了名称和functoid id之外,它的构建几乎相同

已解决: SetExternalFunctionName(GetType().Assembly.FullName ,“BIS.Custom.Functoid.DatetimeToAnyDatetime” ,“DatetimeToCustomDatetime”)


我从BaseFunctoid继承的函数中在此设置了错误的命名空间。

已解决:SetExternalFunctionName(GetType().Assembly.FullName,“BIS.Custom.Functoid.DatetimeToAnyDatetime”,“DatetimeToCustomDatetime”)

我从BaseFunctoid继承的函数中设置了错误的命名空间


主要帖子中的进一步信息。

已解决:SetExternalFunctionName(GetType().Assembly.FullName,“BIS.Custom.Functoid.DatetimeToAnyDatetime”,“DatetimeToCustomDatetime”)

我从BaseFunctoid继承的函数中设置了错误的命名空间


更多信息请参阅主帖子。

发现错误,我的命名空间错误。真丢脸。我也遇到了同样的问题——谢谢你的帖子。如果我发现了错误,我的命名空间就错了。真丢脸。我也有同样的问题——谢谢你的发帖
<?xml version="1.0" encoding="UTF-16"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var ScriptNS0" version="1.0" xmlns:ns0="http://testdeleteme1.Output" xmlns:ScriptNS0="http://schemas.microsoft.com/BizTalk/2003/ScriptNS0">
  <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
  <xsl:template match="/">
    <xsl:apply-templates select="/ns0:Datum" />
  </xsl:template>
  <xsl:template match="/ns0:Datum">
    <ns0:Datum>
      <xsl:for-each select="Testfalle">
        <Testfalle>
          <xsl:variable name="var:v1" select="ScriptNS0:DatetimeToCustomDatetime(string(Datum/text()) , string(Format/text()))" />
          <Datum>
            <xsl:value-of select="$var:v1" />
          </Datum>
          <xsl:if test="Format">
            <Format>
              <xsl:value-of select="Format/text()" />
            </Format>
          </xsl:if>
        </Testfalle>
      </xsl:for-each>
    </ns0:Datum>
  </xsl:template>
</xsl:stylesheet>
    public string DatetimeToCustomDatetime(string date, string dateFormat)
    {
         DateTime dt;
         string retVal;
         ResourceManager resmgr = new ResourceManager("Custom.Biztalk.Datefunctoid" + ".DatetimeResources",  Assembly.GetExecutingAssembly());
         CultureInfo provider = CultureInfo.InvariantCulture;

         dateFormat =  dateFormat.Trim();
         dt = Convert.ToDateTime(date);

         try
         {
             retVal = dt.ToString(dateFormat);
         }
         catch (Exception myEx)
         {
             throw new  Exception(string.Format(resmgr.GetString("IDS_PERIMETERFUNCTOID_EXCEPTION"))  + date + " " + dateFormat + "\n" + myEx.Message);
         }
         return retVal;
     }