title: SolrNET - Data at the root level is invalid. Line 1, position 1
body: <p>I am using <a href="http://lucene.apache.org/solr/" rel="nofollow noreferrer">Solar</a>: 7.0.1 on: localhost:8983/solr/global</p>
  
  <p>I am using <a href="https://github.com/SolrNet/SolrNet" rel="nofollow noreferrer">SolrNET</a> 0.8.1 with the following code example:</p>
  
  <pre><code>using SolrNet;
  using Microsoft.Practices.ServiceLocation;
  
  Startup.Init&lt;SOLRModel&gt;("http://localhost:8983/solr/global");
  var solr = ServiceLocator.Current.GetInstance&lt;ISolrOperations&lt;SOLRModel&gt;&gt;();
  var results = solr.Query(new SolrQuery("*:*&amp;wt=xml")); // Throws Error Here.
  </code></pre>
  
  <p>I am getting an error:</p>
  
  <pre><code>Data at the root level is invalid. Line 1, position 1.
  </code></pre>
  
  <p>I am using default schema, have also tried the techproducts example, get the same error.</p>
  
  <p>I can navigate to: <a href="http://localhost:8983/solr/global/select?q=" rel="nofollow noreferrer">http://localhost:8983/solr/global/select?q=</a><em>:</em> and I get the normal JSON Response.</p>
  
  <p>Using the <code>&amp;wt=xml</code> gives me well formatted XML Response:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; 
  - &lt;response&gt;
      - &lt;lst name="responseHeader"&gt;
             &lt;int name="status"&gt;0&lt;/int&gt; 
            &lt;int name="QTime"&gt;0&lt;/int&gt; 
      - &lt;lst name="params"&gt;
          &lt;str name="q"&gt;*:*&lt;/str&gt; 
          &lt;str name="wt"&gt;xml&lt;/str&gt; 
      &lt;/lst&gt;
      &lt;/lst&gt;
  &lt;result name="response" numFound="0" start="0" /&gt; 
  &lt;/response&gt;
  </code></pre>
  
  <p>Please can someone tell me where I might look to solve this error.</p>