Skip to main content
Unanswered

Unable to publish to Business Central server with Microsoft.Data.SqlClient reference

editSubscribe (0) ShareShare
ReportReport
Posted on by

Dear Sir/Madam,

We are experiencing problems when we use Microsoft.Data.SQLClient in our AL script after upgrading to v22.

The script compiles fine locally but fails to publish the package to the server.

It then returns the following error:

Reason: Extension compilation failed
src/PageExtension/HelloWorld.al(53,23): error AL0132: 'DotNet "Microsoft.Data.SqlClient.SqlCommand"' does not contain a definition for 'CommandTimeout'

and

src/PageExtension/HelloWorld.al(55,23): error AL0132: 'DotNet "Microsoft.Data.SqlClient.SqlCommand"' does not contain a definition for 'CommandText'

Does someone experience the same issues? 

Kind regards,

Koen van Hoesel