title: OutOfMemoryException when saving image
body: <p>I'm trying to send an email from my wcf service. Sending email works fine, but sending email with a pdf as attachment doesn't work at all. I get an OutOfMemoryException at <code>System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)</code>. The image is loaded from an url and included in the pdf.</p>
  
  <p>I've read that OutOfMemoryException doesn't have to be that the application is running out of memory. But I have another almost identical wcf service on the same windows server that works fine. The only difference with that service is the address to the server. (It's located at a subdomain) and it uses another smtp address when sending emails. </p>
  
  <p>Can the problem be because the IIS site or application pool is configurated wrong? And if so, how do I solve it?</p>
  
  <p>Otherwise I have no idea why it's not working. </p>
  
  <p>Any ideas? Please help.</p>