Skip to content

System.Data.SqlClient throwing System.PlatformNotSupportedException when used in Azure Functions (v2) #28231

@TonyHenrique

Description

@TonyHenrique

I have a code running on Azure Functions (v2) and System.Data.SqlClient version 4.5.1
When I upgrade System.Data.SqlClient to 4.6.0, I get this error:

System.Data.SqlClient is not supported on this platform.

2018-12-18T19:00:02.737 [Information] Executing 'LiquidaTitulo' (Reason='This function was programmatically called via the host APIs.', Id=241ebfdf-39d7-4299-8fe7-2bd9a6e08244)
2018-12-18T19:00:10.228 [Error] Executed 'LiquidaTitulo' (Failed, Id=241ebfdf-39d7-4299-8fe7-2bd9a6e08244)
System.Data.SqlClient is not supported on this platform.

Then I downgraded System.Data.SqlClient to version 4.5.1 and it is working now.

Metadata

Metadata

Assignees

Labels

area-System.Data.SqlClientquestionAnswer questions and provide assistance, not an issue with source code or documentation.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions