Skip to content

Invalid value for key 'Encrypt' #2019

Closed as not planned
Closed as not planned
@qizu0302

Description

@qizu0302

I'm using Microsoft.Data.SqlClient 5.1.0, set SqlConnectionStringBuilder.Encrypt to SqlConnectionEncryptOption.Strict, it always pop up "Invalid value for key 'Encrypt' " error, I tried other values as well, like true/false/SqlConnectionEncryptOption.Optional, all failed.

image

Do you know the right value for 'Encrypt' value?
And if I want to set up a TLS 1.3 connection to SQL server, do I need to use the latest SQL Server release?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More Info ℹ️Issues that have insufficient information to pursue investigations

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions