Tx icon indicating copy to clipboard operation
Tx copied to clipboard

AnyCPU version of LINQpad v4/v5 cannot load Tx (LINQ to Logs and Traces) LINQpad driver

Open Tuatan opened this issue 9 years ago • 2 comments

LINQpad v4 AnyCPU edition cannot load Tx (LINQ to Logs and Traces) LINQpad driver.

It will show the following error:

Error instantiating type Tx.LinqPad.TxDataContextDriver in C:\ProgramData\LINQPad\Drivers\DataContext\4.0\Tx.LinqPad (3d3a4b0768c9178e)\Tx.LinqPad.dll

  • Could not load file or assembly 'file:///C:\ProgramData\LINQPad\Drivers\DataContext\4.0\Tx.LinqPad (3d3a4b0768c9178e)\Tx.SqlServer.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.

That is due to mismatch between the processor architecture of the Tx.SqlServer assembly and the processor architecture of the reference "LINQPad", the only workaround is to use x86 version of LINQpad v4 (default one).

Tuatan avatar Feb 04 '16 05:02 Tuatan

To fix that we need to create a separate AnyCPU build of Tx LinqPad driver w/o dependencies on Tx.SqlServer library that is being the culprit.

Tuatan avatar Jun 06 '17 19:06 Tuatan

+1 /cc @abhipsaMisra @davilu @prmathur-microsoft

CIPop avatar May 03 '19 20:05 CIPop