BIML CreateConnectionNode Error – BimlEngine.dll - Build (1.7.0.0)

Topics: Standing Discussions
Jul 21, 2015 at 10:03 PM
Edited Jul 21, 2015 at 10:06 PM
I am trying to test some BIML script in LINQPad but I keep getting the following error when trying to create the connection, “The type initializer for '<>z__Aspects' threw an exception.”
If I switch back to using the BimlEngine.dll from build 1.6.6 it works fine. Is anyone else able to reproduce this error or have any idea what I need to change to get this working in the latest build?

Here is the code I am running:
string connectionstring = "Data Source=.;Initial Catalog=AdventureWorksDW2014;Provider=SQLNCLI11.0;Integrated Security=SSPI;Auto Translate=False;";
var targetConnection = SchemaManager.CreateConnectionNode("SchemaProvider", connectionstring); 
 
IEnumerable<AstTableNode> sourceTables = targetConnection.ImportDB("dbo", "Dim%", ImportOptions.ExcludeViews).TableNodes; 
sourceTables.ToList().ForEach(x=>x.Name.Dump());
Thanks,
Stevo