Hi Joerg,
Thank you for your reply. Unfortunately, your suggestions have not lead me
yet to a solution for 'adding a send handler to my adapter'.
- your suggestion 'check schemas'
I use two schemas: 'TransmitHandler.xsd' and 'TransmitLocation.xsd'. Both
schemata are valid and correct. When i configure my adapter properties in BTS
Admin Console (Platform Settings | Adapters), i see a GUI based on
TransmitHandler.xsd. When i configure adapter properties for a specific port,
i see a GUI based on TransmitLocation.xsd. (meanwhile, DebugView spits no
errors). This leads me to believe that both schema are correct.
- your suggestion 'DebugView'
Indeed, when i try to configure a new handler for my adapter (Platform
Settings | Adapters), DebugView spits an error (see below). However, when
adding a new send handler to the BTS MSMQ adapter, adding the handler
succeeds, but DebugView spits the exact same error (see below, same error
except for the adapter GUID).
I would think this error has to do with the encoding of schema ('data at the
root level is invalid'), and is not related to the issue at hand, namely an
unexpected message saying that my adapter requires static handler
configuration.
I suspect that my custom adapter has not implemented some interface, or
perhaps return specific data that makes BTS think that this adapter has some
specific limitations that it is not supposed to have.
Comments / more suggestions very welcome! Kind regards, Bernard
//// messages when adding a new send handler to my custom BTS adapter:
[256] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void .ctor()
[256] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void
Initialize(System.String)
[256] adapterGuid=
[256] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void .ctor()
[256] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void
Initialize(System.String)
[256] adapterGuid={FBB76652-AE1F-411A-A7D1-8D78AE7EA322}
[256] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: System.String
ValidateConfiguration(Microsoft.BizTalk.Adapter.Framework.ConfigType,
System.String)
[256] configType=TransmitHandler
[256] configuration=***CONFIDENTIAL***
[256] Suppressed exception: System.Xml.XmlException: Data at the root level
is invalid. Line 1, position 1.
[256] at System.Xml.XmlTextReaderImpl.Throw(Exception e)
[256] at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
[256] at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
[256] at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
[256] at System.Xml.XmlTextReaderImpl.Read()
[256] at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean preserveWhitespace)
[256] at System.Xml.XmlDocument.Load(XmlReader reader)
[256] at System.Xml.XmlDocument.LoadXml(String xml)
[256] at
Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy.ValidateConfiguration(ConfigType configType, String configuration)
//// messages when adding a new send handler to BTS MSMQ adapter...
[256] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void .ctor()
[256] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void
Initialize(System.String)
[256] adapterGuid={FF5CEE87-FD92-4422-B47D-F7D033311693}
[256] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: System.String
ValidateConfiguration(Microsoft.BizTalk.Adapter.Framework.ConfigType,
System.String)
[256] configType=TransmitHandler
[256] configuration=***CONFIDENTIAL***
[256] Suppressed exception: System.Xml.XmlException: Data at the root level
is invalid. Line 1, position 1.
[256] at System.Xml.XmlTextReaderImpl.Throw(Exception e)
[256] at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
[256] at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
[256] at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
[256] at System.Xml.XmlTextReaderImpl.Read()
[256] at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean preserveWhitespace)
[256] at System.Xml.XmlDocument.Load(XmlReader reader)
[256] at System.Xml.XmlDocument.LoadXml(String xml)
[256] at
Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy.ValidateConfiguration(ConfigType configType, String configuration)
Post by news.microsoft.comHi,
You provide an XML Schema document for the send handler configuration. Check
that the XML is valid and correct.
Also, run DebugView in parallel, there might be enlighting error messages
coming by.
Regards
Joerg Fischer
BizTalk MVP
Post by -bHi,
After installing my custom adapter successfully, i cannot add new handlers.
'Platform Settings | Adapters | select custom adapter | add New | handler'
Message: "This adapter requires static handler configuration. No new send
handlers may be created for this adapter. Existing handlers cannot be
switched to different BizTalk Host.(WinMgmt)"
I want to configure send handlers for my adapter. What have i coded wrong?
Thanks! b
<FullMessage>
===================================
This adapter requires static handler configuration. No new send handlers may
be created for this adapter. Existing handlers cannot be switched to
different BizTalk Host. (WinMgmt)
------------------------------
http://go.microsoft.com/fwlink/?LinkId=47400&ProdName=Microsoft+BizTalk+Server+2006&ProdVer=3.5.1602.0&EvtSrc=BTSAdminMsg&EvtID=9421
------------------------------
at
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
errorCode, IntPtr errorInfo)
at System.Management.ManagementObject.Put(PutOptions options)
at
Microsoft.BizTalk.Administration.SnapIn.Forms.AdapterHandler.AdapterHandlerPages.CommitChanges()
at
Microsoft.BizTalk.SnapIn.Framework.Forms.PropertyPagesContainer.Store()
at Microsoft.BizTalk.SnapIn.Framework.Forms.SheetFramework.Store()
</FullMessage>