title: Error in owin startup class visual studio 2012
body: <p>I am new to signal r and I am trying to create a basic chat application in c# visual studio 2012 but i am getting following error.</p>
  
  <pre><code>The following errors occurred while attempting to load the app.
  - No assembly found containing an OwinStartupAttribute.
  - The discovered startup type 'SignalRTutorials.Startup, SignalRTutorials, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' 
      conflicts with the type 'Microsoft.VisualStudio.Web.PageInspector.Runtime.Startup, Microsoft.VisualStudio.Web.PageInspector.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. 
   Remove or rename one of the types, or reference the desired type directly. 
   To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of "false" in your web.config. 
   To specify the OWIN startup Assembly, Class, or Method, add the appSetting owin:AppStartup with the fully qualified startup class or configuration method name in your web.config.
  </code></pre>
  
  <p>I have created 3 files:</p>
  
  <p>1) first is Letschat.cs class as:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using Microsoft.AspNet.SignalR;
  using Microsoft.AspNet.SignalR.Hubs;
  namespace SignalRTutorials
  {
      [HubName("myChatHub")]
      public class LetsChat:Hub
      {
          public void send(string message)
          {
  
              Clients.All.addMessage(message);
  
          }
      }
  }
  </code></pre>
  
  <p>2) second file chat.aspx as</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Chat.aspx.cs" Inherits="SignalRTutorials.Chat" %&gt;
  
  &lt;!DOCTYPE html&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;script src="Scripts/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/jquery-1.6.4-vsdoc.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/jquery.signalR-2.0.0.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/jquery.signalR-2.0.0.min.js"&gt;&lt;/script&gt; 
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
           &lt;script type="text/javascript"&gt;
  
               $(function()
               {
                   var IWannaChat=$.connection.myChatHub;
                   IWannaChat.client.addMessage=function(message){
  
                       $('#listMessages').append('&lt;li&gt;'+message+'&lt;/li&gt;');
                   };
                   $("#SendMessage").click(function(){
                       IWannaChat.server.send($('#txtMessage').val());
                   });
                   $.connection.hub.start();
               });
  
  
           &lt;/script&gt;
      &lt;div&gt;
      &lt;input type="text" id="txtMessage" /&gt;
           &lt;input type="text" id="SendMessage" value="broadcast" /&gt;
          &lt;ul id="listMessages"&gt;
  
  
  
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>3) class Named as Startup.cs</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Net;
  using System.Threading.Tasks;
  using System.Web;
  using System.Web.Routing;
  using Microsoft.AspNet.SignalR;
  using Microsoft.Owin.Security;
  using Owin;
  
  
  namespace SignalRTutorials
  {
      public class Startup
      {
          public void Configuration(IAppBuilder app)
          {
              app.MapSignalR();
          }
  
      }
  }
  </code></pre>
  
  <p>I dont know where i am doing wrong any help in this regard will be appreciated.</p>