title: unable to use 'swagger.net' in visual studio 2015 while creating .net web api, why?
body: <p>Unable to use 'swagger.net' in visual studio 2015 while creating .NET web api. Why?
  I encountered an error while creating a web api based on .NET. I've installed swagger and related packages.</p>
  
  <p>Error on: <strong>SwaggerActionFilter(), XmlCommentDocumentationProvider</strong></p>
  
  <p>My function is :</p>
  
  <pre><code>public static void PostStart() 
  {
      var config = GlobalConfiguration.Configuration;
  
      config.Filters.Add(new SwaggerActionFilter());
  
      try
      {
          config.Services.Replace(typeof(IDocumentationProvider),
              new XmlCommentDocumentationProvider(HttpContext.Current.Server.MapPath("~/bin/DigiCob.XML")));
      }
      catch (FileNotFoundException)
      {
          throw new Exception("Please enable \"XML documentation file\" in project properties with default (bin\\DigiCob.XML) value or edit value in App_Start\\SwaggerNet.cs");
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/AXezE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AXezE.png" alt="enter image description here"></a></p>