Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Not picking up linux binary for System.Net.Http.dll #2703

Closed
Tratcher opened this issue Sep 14, 2015 · 12 comments
Closed

Not picking up linux binary for System.Net.Http.dll #2703

Tratcher opened this issue Sep 14, 2015 · 12 comments

Comments

@Tratcher
Copy link
Member

aspnet/Security#415

Dnx embeds the coreclr binaries for linux/mac, including System.Net.Http. Security also uses System.Net.Http, but the package only contains the windows binaries. @davidfowl said that dnx should load the linux binary for you, but that the directory structure is wrong so it doesn't work right now. Fix it.

Eventually the coreclr packages will contain both windows and linux binaries.

@BrennanConroy

@Tratcher Tratcher added the bug label Sep 14, 2015
@muratg
Copy link
Contributor

muratg commented Sep 15, 2015

Where would this assembly be loaded from instead? Is it special casing for Linux? And for OS X too?

@muratg
Copy link
Contributor

muratg commented Sep 16, 2015

@analogrelay
Copy link
Contributor

Since at the moment we embed System.Net.Http in the DNX, we'd place it in the DNX runtime folder.

@BrennanConroy
Copy link
Member

This could probably be fixed if we copy the dll to the bin folder as well as keep it in the Tooling folder

@muratg
Copy link
Contributor

muratg commented Sep 18, 2015

Yes, I think we should do that.

@zhangxin511
Copy link

Hey gentles,
With helps from @Tratcher and our architecture, I am able to get some response using HttpClient in Linux:
We upgraded dnvm to coreclr beta8-15618, and copied System.Net.Http.dll and System.Net.Http.Native.so from ~/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-beta8-15618/bin/lib/Microsoft.Dnx.Tooling/ to ~/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-beta8-15618/bin/, and use HttpClient methods to get content from web servers. However, I am not able to read the Content of response Linux, while the header information seems fine. The same code works fine in windows.

Is there anything I am missing?

Thank you!

@Tratcher
Copy link
Member Author

Is the response compressed? I wonder if the Linux client isn't auto-decompressing.

@zhangxin511
Copy link

Yes, the response is compressed. The header returns when GetAsync to google.com:
Content-Type: text/html; charset=ISO-8859-1
Content-Encoding: gzip
Content-Length: 50309

But even I tried removing the compression or decompress after getting the content I still not getting anything. You can find the source code at https://www.dropbox.com/sh/iukr2l4elcqp77k/AACXrYXo2rrcc4PCn9taJGhaa?dl=0

Thank you for your continue helps!

@Tratcher
Copy link
Member Author

@BrennanConroy have you seen any issues like this? Are there any similar corefx bugs outstanding?

@BrennanConroy
Copy link
Member

I haven't tried anything like this, the client may have more features now, especially since we haven't tried a new one in a couple weeks. We should try this when we grab the new bits.

@BrennanConroy
Copy link
Member

Fixed with the latest CoreCLR bits, waiting for a build to go through on our side.

@BrennanConroy
Copy link
Member

Fixed by a few different changes, wont list them all here, but one is a64c8d5

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

No branches or pull requests

5 participants