ASP.NET에서 Windows Media Player 라이브러리에 액세스하려고합니다.IIS에서 ASP.NET의 WMPLib.mediaCollection 메서드를 호출하면 빈 목록이 반환됩니다.
다음 코드
WMPLib.WindowsMediaPlayer MPlayer는 새로운 WMPLib.WindowsMediaPlayer =();
WMPLib.IWMPStringCollection list = mplayer.mediaCollection.getAttributeStringCollection ("artist", "audio");
VS2005 개발 웹 서버를 사용하여 실행 중일 때 비어 있지 않은 목록을 반환하지만 IIS를 사용할 때는 비어있는 목록을 반환합니다.()
System.Security.Principal.WindowsImpersonationContext impersonationContext = ((System.Security.Principal.WindowsIdentity) User.Identity) .Impersonate;
으로 가장 설정
도움이되지 않습니다. WMPLib는 여전히 라이브러리가있는 사용자로 실행되는 것으로 생각하지 않습니다.
이 문제를 해결할 방법이 있습니까?