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

Recent commit uses a Socket constructor not available on mono (causes a crash) #526

Closed
borgdylan opened this issue Aug 14, 2014 · 1 comment
Assignees
Milestone

Comments

@borgdylan
Copy link

Looking at the line https://github.com/aspnet/KRuntime/blob/dev/src/Microsoft.Framework.Runtime/DefaultHost.cs#L171, a constructor not available on mono is being used triggering teh following exception:

Missing method System.Net.Sockets.Socket::.ctor(SocketType,ProtocolType) in assembly /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll, referenced in assembly /home/dylan/.kre/packages/KRE-mono45-x86.1.0.0-alpha4-10274/bin/Microsoft.Framework.Runtime.dll
Method not found: 'System.Net.Sockets.Socket..ctor'.

The only overloads available on mono are:
public Socket (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
public Socket (SocketInformation socketInformation)

@borgdylan borgdylan changed the title Recent DTH commit uses a Socket constructor not available on mono (causes a crash) Recent commit uses a Socket constructor not available on mono (causes a crash) Aug 14, 2014
@davidfowl davidfowl added this to the 1.0.0-alpha4 milestone Aug 14, 2014
@davidfowl davidfowl self-assigned this Aug 14, 2014
@alek-sys
Copy link

I've tried to fix it in #529 (but probably in pretty straightforward way)

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

3 participants