title: ServiceAuthorizationManager not called
body: <p>I have a very simple ServiceAuthorizationManager (perhaps the simplest) and have followed various tutorials on the web but for some reason none of my breakpoints are hit and this leads to me thinking that its not being called.</p>
  
  <ul>
  <li>Created a WCF Service Application named it WcfTest</li>
  <li>Kept the default classes Service1.svc, IService.cs but changed method to return a string</li>
  <li>Added a new class that inherits from ServiceAuthorizationManager</li>
  <li>Overridden the method CheckAccessCore()</li>
  <li>Adjusted web.config so that it uses this manager class</li>
  <li><p>Run the WCF Service Application</p></li>
  <li><p>Assembly is called WcfTest</p></li>
  <li>All classes live in root of the project no folders or anything</li>
  </ul>
  
  <p>Invoke the method and at this point I am expecting my ServiceAuthorizationManager to be called or am I wrong here? I thought the whole purpose of it was to hit the custom ServiceAuthorizationManager on every request received?</p>
  
  <p>Thanks in advance, Onam.</p>
  
  <p>Any more info required let me know, will be watching this like a hawk as I am very confused when this should apparently be very simple.</p>
  
  <pre><code>[ServiceContract]
  public interface IService1
  {
      [OperationContract]
      [WebGet(UriTemplate = "/getIt",ResponseFormat=WebMessageFormat.Json)]
      string GetIt();
  }
  
  public class Service1 : IService1
  {
      public string GetIt()
      {
          return "boo!";
      }
  }
  
  public class MyServiceMan : ServiceAuthorizationManager
  {
      protected override bool CheckAccessCore(OperationContext operationContext)
      {
          try
          {
              //Some stuff here breakpoint set on above line not hit
              return false;
          }
          catch (Exception e)
          {
              return false;
          }
      }
  }
  
  &lt;configuration&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.0" /&gt;
    &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service name="WcfTest.Service1"&gt;
          &lt;endpoint address=""
                    contract="WcfTest.IService1"
                    binding="webHttpBinding"&gt;
          &lt;/endpoint&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior&gt;
            &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt;
            &lt;serviceMetadata httpGetEnabled="true"/&gt;
            &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
            &lt;serviceAuthorization serviceAuthorizationManagerType="WcfTest.MyServiceMan,WcfTest" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt;
    &lt;/system.serviceModel&gt;
   &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>