title: Calling WMPLib.mediaCollection methods from ASP.NET on IIS return empty lists
body: <p>I am trying to access a Windows Media Player library from ASP.NET.</p>
  
  <p>The following code:</p>
  
  <p>WMPLib.WindowsMediaPlayer mplayer = new WMPLib.WindowsMediaPlayer();</p>
  
  <p>WMPLib.IWMPStringCollection list = mplayer.mediaCollection.getAttributeStringCollection("artist", "audio");</p>
  
  <p>Returns an non-empty list when run using the VS2005 development web server but an empty list when using IIS.</p>
  
  <p>Setting impersonation with:</p>
  
  <p>System.Security.Principal.WindowsImpersonationContext impersonationContext = ((System.Security.Principal.WindowsIdentity)User.Identity).Impersonate();</p>
  
  <p>Doesn't help. It seems that WMPLib still doesn't thinks its running as a user who has a library. </p>
  
  <p>Is there a way to get around this?</p>