title: WebService WCF - Cannot obtain metadata
body: <p>I have an WCF Service, and it works in localhost, but when published to an IIS server, I wasn't able to access it's methods anymore, the error message was that</p>
  
  <blockquote>
    <p>"This assembly does not allow partially trusted callers"</p>
  </blockquote>
  
  <p>Then, I added the following to the Web.config file:</p>
  
  <pre><code>&lt;trust level="Full" originUrl=""/&gt;
  </code></pre>
  
  <p>Now, I receive this error message:</p>
  
  <blockquote>
    <p>Cannot obtain Metadata from <a href="http://wheremyserviceispublished.net/Service.svc" rel="nofollow noreferrer">http://wheremyserviceispublished.net/Service.svc</a>
    If this is a Windows (R) Communication Foundation service to which you
    have access, please check that you have enabled metadata publishing at
    the specified address.</p>
  </blockquote>
  
  <p>Does anybody have an clue on how to solve these problems?</p>