- Home /
Question by
anunitynewbie · Mar 11, 2012 at 03:30 AM ·
c#networkmissingmethodexceptionlidgren
C# Lidgren network MissingMethodException
I'm getting the following error
MissingMethodException: Method not found: 'System.Threading.Monitor.Enter'.
Lidgren.Network.NetPeer.Start ()
from this code:
using UnityEngine;
using System;
using System.Collections;
using Lidgren.Network;
public class NetworkConnection {
public static NetClient client;
public static NetPeerConfiguration config;
static NetworkConnection() {
config = new NetPeerConfiguration("arena");
client = new NetClient(config);
client.Start();
client.Connect("127.0.0.1", 3054);
}
}
My feeble attempts at googling the error haven't told me what's wrong so I thought to ask here. I can't see anything that differs from code in samples of the Lidgren network library so I'm stumped.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613064956im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Send Prefab by RPC? 1 Answer
Disabling a child script within the parent. 0 Answers
Syncing localScale 0 Answers