title: WPF Web (xbap) using WCF Service throws System.Net.webPermission exception
body: <p>I have an xbap application running with partial trust on my local machine's IIS 7.5. I published the WCF service to the same directery as the xbap.</p>
  
  <p>After jumping through some hoops I could get it working through Visual Studio for debugging perposes, but I can't seem to get it to work on an IIS server after it's published.</p>
  
  <p>I'm running on .Net 4.0</p>
  
  <p>Contents of the error:
  "Request for the permission of type System.Net.webPermission, System
  Version=4.0.0.0, culture neutral, PublicKeyToken=b77a5c56l934e089 failed."</p>
  
  <p>Update:</p>
  
  <p>So I started over, making a new Wcf service, new Xbap and a new site to deploy to. After verifying every step of the way, I got it to work. So I started to integrate my previous apps, one-by-one, over to the new site to discover what was the problem. I narrowed it down to my original Wcf service, but after making it identical to the working one, it still has the WebPermission error.</p>
  
  <p>So, I still don't know what was causing the problem, other than redoing it fixed it.</p>