There is a package created in a solution to read the Flight Recorder trace file.
To execute this package, SQL server Agent job is calling this dtsx and setup with 32-bit runtime.
Its running fine on Test server, but failed on Pre-Production with below error:
Microsoft.SqlServer.Management.Trace.SqlTraceException: Failed to initialize object as reader. ---> System.IO.FileNotFoundException: Could not load file or assembly 'file:///F:\Program Files\Microsoft SQL Server\120\Tools\Binn\pfclnt.dll' or one of its dependencies. The system cannot find the file specified.
This dll is available in F:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn in both environments.
Not able to understand, why 32-bit mode is calling dll from 64-bit folder location
Note: In the SQL server job , there are 3 packages being called, 1 and 3 being executed with 64-bit mode and 2nd with 32-bit mode (which is throwing error)
Could anyone please suggest on this.