I have v5 of the BizTalk scheduled task adapter installed to test and live servers. It is configured to run with the following class - triggered every 2 minutes
ScheduledTaskAdapter.TaskComponents.FileStreamProvider, ScheduledTaskAdapter.TaskComponents, Version=4.0.0.0, Culture=neutral, PublicKeyToken=aa9f2dd0f13442dc
It is pointing at a local xml file
It works fine on the test environment but on the live environment the receive location shuts down after the first poll and the followed error is logged:
The receive location "RcvScheduledTask_Loc" with URL "schedule://TimeSpan/GetEmail" is shutting down. Details:"Unable to cast object of type 'ScheduledTaskAdapter.TaskComponents.FileStreamProvider' to type 'ScheduledTaskAdapter.TaskComponents.IScheduledTaskStreamProvider'.".
On attempting to undeploy with the BTDF, the following error is wrriten to deploy results in response to a BTSTask RemoveApp:
EXEC : warning : Could not validate TransportTypeData, Address or Public Address properties for Receive Location 'RcvScheduledTask_Loc'. Object reference not set to an instance of an object.
Any ideas where I'm going wrong please?
Within the binding for receive location look for
<ReceiveLocationTransportTypeData>\<CustomProps>\<AdapterConfig>\<config>\<task>
Here you should find a element. Problem was I'd forgotten update the version. After the update the content should read:
ScheduledTaskAdapter.TaskComponents.FileStreamProvider, ScheduledTaskAdapter.TaskComponents, Version=5.0.0.3, Culture=neutral, PublicKeyToken=aa9f2dd0f13442dc
This problem was being masked on the Test server because v4 of the scheduled task adapter assemblies were still present in the GAC - along with the v5 assemblies