Skip to content

WebAPI Core - FromBody values always null after referencing System.Data.SqlClient 4.1.0 #1687

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

Closed
victorvartan opened this issue Jul 24, 2016 · 3 comments

Comments

@victorvartan
Copy link

I'm not sure if this is the right place to post the issue, but on any POST endpoint I receive null values for all FromBody parameters after adding the dependency System.Data.SqlClient 4.1.0 although I don't actually use it... Using FromQuery values works. I attached a sample project.
TestAspCore.zip

@rynowak
Copy link
Member

rynowak commented Jul 25, 2016

I've seen a similar problem before here: #1605 (comment)

The root cause is likely a mismatch between the 1.0.0-rc2 Kestrel binaries and the 1.0.0 .NET Core libraries. You can check this by looking at the console log or developer exception page - or if you have a debugger, attach the process and break on first chance exceptions.

@victorvartan
Copy link
Author

You're right, thanks for the link and sorry for the duplicate issue, closing it!

@rynowak
Copy link
Member

rynowak commented Jul 25, 2016

No worries, this was a hard issue to track down!

natemcmaster pushed a commit that referenced this issue Nov 14, 2018
- Style changes: Sort usings, use more var and C#7
- Added ConfigureAwait to stop dead locks with xunit
- Remove duplicate handling of aborts in the receiver
- Handle the case where output ends before input
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants