WebApp.Start System.NullReferenceException

时间:2018-04-16 07:24:15

标签: c# .net signalr console-application

来自tutorial

System.NullReferenceException:'对象引用未设置为对象的实例。

示例不起作用:

<code>
        static void Main(string[] args)
        {
            // System.NullReferenceException: 'Object reference not set to an instance of an object.
            string url = "http://localhost:8080";
            using (WebApp.Start(url))
            {
                Console.WriteLine("Server running on {0}", url);
                Console.ReadLine();
            }
        }
</code>

0 个答案:

没有答案