none
Could not remove application with scheduler adapter with custom SchedulerProvider RRS feed

  • Question

  • Dear community,

    I faced with this problem, I can not remove application with scheduler adapter which includes custom provider (which is an implementation of IScheduledTaskStreamProvider2). But, when I change port type on any other adapter(for example File), then there is no any problems during application removing from biztalk console. Also, I don't have removing problems when I use default providers like HttpDownload from ScheduledTaskAdapter.TaskComponents.dll library.

    In log I see this message :
    EXEC : warning : Error while removing application "AppName". [@path\Deployment.btdfproj] EXEC : warning : Could not validate TransportTypeData, Address or Public Address properties for Receive Location 'ReceiveLocation'. Object reference not set to an instance of an object. [@path\Deployment.btdfproj]. Below, I shown ReceivePort bindings from PortBindingsMaster.xml

    <ReceivePort Name="@portName" IsTwoWay="false" BindingOption="1">
        <Description xsi:nil="true" />
        <ReceiveLocations>
            <ReceiveLocation Name="@locationName">
                <Description xsi:nil="true" />
                <Address>schedule://TimeSpan/@address</Address>
                <PublicAddress />
                <Primary>true</Primary>
                <ReceiveLocationServiceWindowEnabled>false</ReceiveLocationServiceWindowEnabled>
                <ReceiveLocationFromTime>2000-01-01T07:00:00</ReceiveLocationFromTime>
                <ReceiveLocationToTime>2000-01-01T06:59:59</ReceiveLocationToTime>
                <ReceiveLocationStartDateEnabled>false</ReceiveLocationStartDateEnabled>
                <ReceiveLocationStartDate>2016-07-29T00:00:00</ReceiveLocationStartDate>
                <ReceiveLocationEndDateEnabled>false</ReceiveLocationEndDateEnabled>
                <ReceiveLocationEndDate>2016-07-30T23:59:59</ReceiveLocationEndDate>
                <ReceiveLocationTransportType Name="Schedule" Capabilities="9" ConfigurationClsid="f2faa6a3-45e2-4c09-8024-425e768cc8ef" />
                <ReceiveLocationTransportTypeData>
                    <CustomProps>
                        <AdapterConfig vt="8">
                            <config>
                                <uri>schedule://TimeSpan/@projectName</uri>
                                <name>@projectName</name>
                                <suspend>true</suspend>
                                <Schedule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="TimeSpanSchedule">
                                    <LastActivated>1900-01-01T00:00:00</LastActivated>
                                    <NextActivated xsi:nil="true" />
                                    <StartTime>1900-01-01T07:26:00</StartTime>
                                    <StartDate>2016-10-25T00:00:00</StartDate>
                                    <Interval>300</Interval>
                                </Schedule>
                                <task>
                                    <qualifiedname>@projectName.@customProviderClassName, @projectName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=@token</qualifiedname>
                                    <@paramClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                        <Param1>true</Param1>                   
                                        <XmlParam2>&lt;Request&gt;&lt;/Request&gt;</XmlSqlParameterTemplate>
                                    </@paramClass>
                                </task>
                            </config>
                        </AdapterConfig>
                    </CustomProps>
                </ReceiveLocationTransportTypeData>
                <ReceivePipeline Name="Microsoft.BizTalk.DefaultPipelines.XMLReceive" FullyQualifiedName="Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="1" TrackingOption="None" Description="" />
                <ReceivePipelineData xsi:nil="true" />
                <SendPipeline xsi:nil="true" />
                <SendPipelineData xsi:nil="true" />
                <Enable>true</Enable>
                <ReceiveHandler Name="BizTalkServerApplication" HostTrusted="true">
                    <TransportType Name="Schedule" Capabilities="9" ConfigurationClsid="f2faa6a3-45e2-4c09-8024-425e768cc8ef" />
                </ReceiveHandler>
            </ReceiveLocation>
        </ReceiveLocations>
        <SendPipelineData xsi:nil="true" />
        <Authentication>0</Authentication>
        <Tracking>0</Tracking>
        <Transforms />
        <RouteFailedMessage>false</RouteFailedMessage>
        <ApplicationName>@appName</ApplicationName>
    </ReceivePort>
    Could anybody assist me with it?
    Thanks

    PS I'm using ScheduledTaskAdapter.TaskComponents v.5.0.0.3 for creating of custom provider.

    Saturday, April 8, 2017 8:16 PM

All replies

  • So, the binding file isn't really useful :(.  Sorry.

    Instead, what you need to do is debug the Scheduled Task Adapter and the custom provider just like any other .Net app.

    If you Attach from Visual Studio, you should be able to see the blocking call.

    Sunday, April 9, 2017 11:54 AM