title: Using .net web app function in WCF
body: <p>I'm trying to add this function into<code>WCF</code> (which new to me) so that I can call this function as a service later. But I receive this error: </p>
  
  <blockquote>
    <p>The name 'imgprofile' does not exist in the current context.</p>
  </blockquote>
  
  <p>Anyone know please share their ideas or solutions. </p>
  
  <p><img src="https://i.stack.imgur.com/JTDCz.jpg" alt="Error Line"></p>