i developed webpage on iis controls pc volume (using library - cscore.coreaudioapi ). need user logged in current user in machine.
i tried configure web.config file allow impersonated authentication, still having troubles.
<system.web> <identity impersonate="true" username="domain\username" password="xxxx" /> </system.web>
thank help.
you need enable windows authentication in order work. otherwise there's no mechanism capture user name.
however, think better approach create custom application pool application , explicitly set impersonation (advanced settings) user want set to. since application pool hosts application (ie. it's launching exe) application runs under account , assuming has full rights on machine should able access hardware control volume.
asp.net impersonation legacy feature meant used iis 6 , older when iis didn't have proper application isolation. later versions application pools took on hosting of applications , user account impersonation it.
Comments
Post a Comment