Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# BizTalk自定义适配器事件日志垃圾邮件(禁用时)_C#_Adapter_Biztalk_Webdav - Fatal编程技术网

C# BizTalk自定义适配器事件日志垃圾邮件(禁用时)

C# BizTalk自定义适配器事件日志垃圾邮件(禁用时),c#,adapter,biztalk,webdav,C#,Adapter,Biztalk,Webdav,我为BizTalk创建了一个WebDAV发送/接收适配器,一切正常,但当我禁用接收位置时,事件日志会被3个错误淹没 适配器“WebDAV”引发了一条错误消息。详细信息“字典中不存在给定的密钥。” URL为“WebDAV://URI//kstore/C20709T11/tmp/Temp”的接收位置“RL.WebDAV.HBS”正在关闭。详细信息:“消息引擎在通知适配器其配置时失败。” 消息引擎无法从适配器“WebDAV”中删除URL为“WebDAV://URI//kstore/C20709T11/

我为BizTalk创建了一个WebDAV发送/接收适配器,一切正常,但当我禁用接收位置时,事件日志会被3个错误淹没

  • 适配器“WebDAV”引发了一条错误消息。详细信息“字典中不存在给定的密钥。”

  • URL为“WebDAV://URI//kstore/C20709T11/tmp/Temp”的接收位置“RL.WebDAV.HBS”正在关闭。详细信息:“消息引擎在通知适配器其配置时失败。”

  • 消息引擎无法从适配器“WebDAV”中删除URL为“WebDAV://URI//kstore/C20709T11/tmp/Temp”的接收位置“RL.WebDAV.HBS”。原因:“字典中不存在给定的密钥。”

  • 我的代码中没有使用一个字典,字典是什么意思

    直到我停止并重新启动主机实例,它才会停止

    在我的ReceiverAdapter中有一个Terminate方法,我可以重写它,但是没有任何地方需要销毁

    在我的接收方中处置:

        public override void Dispose()
        {
            EventLog.WriteEntry("BizTalk Server", "[WebDAV Adapter] Stopped Adapter UniqueCode: 635265412", EventLogEntryType.Information);
    
            base.Dispose();
            this.isStopped = true;
            this.timer.Dispose();
            this.transportProxy = null;
            this.connection.IsStopped = true;
            this.connection.AbortSession();
            this.connection.CloseSession();
    
            if (Marshal.IsComObject(connection))  
            {
                while (0 <Marshal.ReleaseComObject(connection))
                {
                    Marshal.ReleaseComObject(connection);
                }
            }
    
            GC.SuppressFinalize(connection);
        }
    
    public override void Dispose()
    {
    EventLog.WriteEntry(“BizTalk Server,“[WebDAV适配器]停止的适配器唯一代码:635265412”,EventLogEntryType.Information);
    base.Dispose();
    this.isStopped=true;
    this.timer.Dispose();
    this.transportProxy=null;
    this.connection.IsStopped=true;
    this.connection.AbortSession();
    this.connection.CloseSession();
    if(封送IsComObject(连接))
    {
    
    虽然(0),但您是否已通过dispose代码进行调试,以确保这些调用都不会引发任何异常?FWIW,我相信我已经在另一个自定义适配器(schedule task)中看到了这一点,并且从未确定原因。