Configuring ASP.NET Impersonation Authentication
<p>I developed a webpage on IIS that controls PC volume (using the library - CSCore.CoreAudioAPI ). 
I need that the user will be logged in as the current user in the machine.</p>

<p>I tried to configure the web.config file to allow Impersonated Authentication, but still having troubles. </p>

<pre><code>&lt;system.web&gt;
    &lt;identity impersonate="true"
      userName="Domain\username" 
      password="XXXX" /&gt;
&lt;/system.web&gt;
</code></pre>

<p><a href="https://i.stack.imgur.com/e94mU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e94mU.png" alt="enter image description here"></a></p>

<p>Thank you for your help.</p>