Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ Runtime Required #296

Closed
wjvii opened this issue Nov 4, 2019 · 2 comments
Closed

C++ Runtime Required #296

wjvii opened this issue Nov 4, 2019 · 2 comments
Milestone

Comments

@wjvii
Copy link

wjvii commented Nov 4, 2019

Describe the bug

When installing our .NET Framework application on a new Windows 2012 server we started running into the error below after updating from System.Data.SqlClient to Microsoft.Data.SqlClient. The error gave no indication that the C++ runtime was required, but with the only other change of installing the C++ runtime from here: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads it started working.

Exception message: System.TypeInitializationException: The type initializer for 'Microsoft.Data.SqlClient.TdsParser' threw an exception.

Expected behavior

I would prefer not to have to have this is a pre-requisite at all but if I do I would like the error message to be clear that is what is required.

Further technical details

Microsoft.Data.SqlClient version: 1.0.19269.1
.NET target: (e.g. Framework 4.7.1
SQL Server version: (SQL Azure)
Operating system: (e.g. Windows 2012)

Additional context
Add any other context about the problem here.

@David-Engel
Copy link
Contributor

@wjvii Thanks for filing the issue. We'll try and improve documentation about this requirement and perhaps update our NuGet package description to call this out.

@yukiwongky yukiwongky added this to the 1.1.0 milestone Nov 5, 2019
David-Engel added a commit to David-Engel/SqlClient that referenced this issue Nov 19, 2019
Don't throw exception on invalid app.config files (dotnet#287)
David-Engel added a commit that referenced this issue Nov 20, 2019
Don't throw exception on invalid app.config files (#287)
@cheenamalhotra
Copy link
Member

Closing as documentation added to be part of notes/specs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants