Readme file error on SignalR SelfHost package

25 בJuly 2013

no comments

SignalR LogoWhen installing Microsoft.SignalR.SelfHost package, there was, as in any SignalR nuget package
a readme file opened. However, this time there’s an error in the file that caused me an hour
of head-scratching.

 

The readme suggested you call the self-hosted web application as the following:
(Copied from the readme file)

 

using System;

using Microsoft.Owin.Hosting;

 

namespace MyWebApplication

{

    public class Program

    {

        static void Main(string[] args)

        {

            using (WebApplication.Start<Startup>("http://localhost:8080/"))

            {

                Console.WriteLine("Server running at http://localhost:8080/");

                Console.ReadLine();

            }

        }

    }

}

However, the compiler will tell you that there is no class named WebApplication .

After my head-scratching I’ve finally found the error: The class is named WebApp

and not WebApplication.

 I hope the readme file will be corrected soon, meanwhile you can use this post.

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*