title: asmx page is blank but WebService is working
body: <p>I have a asmx WebService that works perfectly but returns a blank page when I browse to it in a browser. </p>
  
  <p>When I browse to the <code>search.asmx</code> file I don't get the usual html format description of the service with the testing form that allows you to invoke the service. All I get is a completely blank page. (view source returns nothing).</p>
  
  <p>This happens both on localhost (casini) and on the server (IIS 7.5).</p>
  
  <p>Is there a way I can turn this on?</p>
  
  <h2>My web.config looks like this:</h2>
  
  <pre class="lang-xml prettyprint-override"><code>  ...
    &lt;system.web&gt;
      &lt;httpRuntime requestValidationMode="2.0" enableKernelOutputCache="false"/&gt;
      &lt;webServices&gt;
        &lt;protocols&gt;
          &lt;add name="HttpGet"/&gt;
          &lt;add name="HttpPost"/&gt;
        &lt;/protocols&gt;
      &lt;/webServices&gt;
      ...
  </code></pre>
  
  <h2>My Service looks something like this:</h2>
  
  <pre class="lang-c# prettyprint-override"><code>...
  [WebService(Namespace = "http://mydomain.edu/something")]
  [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  
  [System.Web.Script.Services.ScriptService]
  public class SearchService : System.Web.Services.WebService {
  
      public SearchService() {
  
      }
  
      [WebMethod(EnableSession = true)]
      [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
      public SearchResponse Search(SearchFilter filter)
      {
  ...
  </code></pre>
  
  <h1>Update:</h1>
  
  <p>When I navigate to the wsdl <code>search.asmx?wsdl</code> I get an error:</p>
  
  <blockquote>
    <p>System.InvalidOperationException: Method Search can not be reflected.
    ---> System.InvalidOperationException: There was an error reflecting &#39;SearchResult&#39;. ---> System.InvalidOperationException: There
    was an error reflecting type &#39;SearchResponse&#39;. --->
    System.InvalidOperationException: There was an error reflecting
    property &#39;attributes&#39;. ---> System.InvalidOperationException:
    There was an error reflecting type &#39;USpaceDataAttributes&#39;.
    ---> System.NotSupportedException: Cannot serialize member USpaceDataAttributes.attributes of type
    System.Collections.Generic.Dictionary`2[[System.String, mscorlib,
    Version=4.0.0.0, Culture=neutral,
    PublicKeyToken=b77a5c561934e089],[SimpleTypeData, Entities,
    Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], because it
    implements IDictionary.</p>
  </blockquote>
  
  <p>I'm pretty sure this why I'm getting a blank page.</p>