Skip to content
This repository has been archived by the owner. 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

Comments

@borgdylan
Copy link

commented Aug 14, 2014

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 bug labels 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

This comment has been minimized.

Copy link

commented Aug 14, 2014

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

@davidfowl davidfowl added 2 - Working and removed 0 - Backlog labels Aug 15, 2014
davidfowl added a commit that referenced this issue Aug 15, 2014
- Use ipv4 since we only care about the loop back adapter

#526
@davidfowl davidfowl added 3 - Done and removed 2 - Working labels Aug 15, 2014
@davidfowl davidfowl closed this Aug 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.