Re: (The Transport Batch flush operation failed) + Custom Adapter

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kamal (kali_at_bca-group.comNOSPAMPLEASE)
Date: 01/26/05


Date: Wed, 26 Jan 2005 16:02:47 -0000

Any suggestions please.......... :o(

"Kamal" <kali@bca-group.comNOSPAMPLEASE> wrote in message
news:%23py7uYV$EHA.1084@tk2msftngp13.phx.gbl...
> Hi,
>
> I've developed a custom One-Way Receive Adapter, it works fine but
whenever
> I stop the Host service, it takes so long to stop and the following error
> appear in the Event Viewer:
>
> ( The Transport Batch flush operation failed. )
>
> and also the following error:
>
> --------------------------------------------------------------------------

--
> -------------------------------------------------------------
> Unhandled exception caught, exception details:
> System.Security.SecurityException: Requested registry access is not
allowed.
>    at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
writable)
>    at System.Diagnostics.EventLog.CreateEventSource(String source, String
> logName, String machineName, Boolean useMutex)
>    at System.Diagnostics.EventLog.WriteEntry(String message,
> EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
>    at System.Diagnostics.EventLog.WriteEntry(String source, String
message,
> EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
>    at System.Diagnostics.EventLog.WriteEntry(String source, String
message,
> EventLogEntryType type, Int32 eventID, Int16 category)
>    at System.Diagnostics.EventLog.WriteEntry(String source, String
message,
> EventLogEntryType type, Int32 eventID)
>    at System.Diagnostics.EventLog.WriteEntry(String source, String
message,
> EventLogEntryType type)
>    at
>
bcagroup.BizTalk.Adapters.RunTime.RcvAdapterReceiveAdapter.RcvAdapterReceive
> rEndpoint.PollTask() in
>
c:\testapp\adapters\trcvadapter\testrcvadapter\run-time\rcvadapterreceive\rc
> vadapterreceiverendpoint.cs:line 165
>    at
>
bcagroup.BizTalk.Adapters.RunTime.RcvAdapterReceiveAdapter.RcvAdapterReceive
> rEndpoint.ProcessWorkItem() in
>
c:\testapp\adapters\testrcvadapter\testrcvadapter\run-time\rcvadapterreceive
> \rcvadapterreceiverendpoint.cs:line 140
>    at
>
Microsoft.Samples.BizTalk.Adapters.BaseAdapter.ThreadPool.WorkerThreadThunk(
> Object state).
> --------------------------------------------------------------------------
--
> ------------------------------------------------------------
>
> If the messages were not transmitted to BizTalk and I stopped the Host,
> these messages will get LOST (i.e. don't appear in BizTalk nor in the
remote
> directory as I delete the files after submitting it to the BatchHandler).
>
> Is there anyway to resolve this problem? Any method from the BaseAdapter
> classes to be called when the the service has been terminated (stopped)?.
I
> need to be able to stop the Host without having to lose any of messages or
> cause any delays in stopping the Host.
>
> Any help, suggestions or comments would be very much appreciated.
>
> Thank you and really hope to hear from you very soon.
>
>
> Kamal
>
>


Relevant Pages

  • RE: System.ComponentModel.Win32Exception: Access is denied
    ... EventLogEntryType type, Int32 eventID, Int16 category, ByterawData) ... categoryName, String counterName, Boolean createNewInstance) ... counterCategory, StringcounterNames, Boolean createNewInstance, ...
    (microsoft.public.dotnet.languages.csharp)
  • System.ComponentModel.Win32Exception: Access is denied
    ... EventLogEntryType type, Int32 eventID, Int16 category, ByterawData) ... categoryName, String counterName, Boolean createNewInstance) ... counterCategory, StringcounterNames, Boolean createNewInstance, ...
    (microsoft.public.dotnet.languages.csharp)
  • (The Transport Batch flush operation failed) + Custom Adapter
    ... EventLogEntryType type, Int32 eventID, Int16 category, ByterawData) ... at System.Diagnostics.EventLog.WriteEntry(String source, String message, ... If the messages were not transmitted to BizTalk and I stopped the Host, ...
    (microsoft.public.biztalk.general)
  • Re: Struggling to convert a mysql datetime object to a python string of a different format
    ... I google a lot but couldnt found out how to format it being a string ... cursor.execute(''' SELECT host, hits, date FROM visitors WHERE page ... Could 'dataset' be a 'list of lists' as well? ...
    (comp.lang.python)
  • Re: Typosquatting
    ... interpreted string is either a quoted-string or a dot-atom. ... In the dot-atom form, this is interpreted as an Internet ... particular host. ...
    (sci.electronics.design)