Hi,

I'm slowly starting to lose my hair over this, so any help is
appreciated.

I have a XP Pro desktop machine connected to my stereo and uses it as
a jukebox. I control it with my laptop using the WMPlayer-control via
good old ASP-pages.

There are no problems playing mp3s and wma from local drives, but when
I try to access a web-radio the WMPlayer-object returns an error
indicating that the file/stream can't be located.

I've tried to reproduce this error in a vbs-file, but this works
without any problems. I have a suspicion that restrictions might apply
for the IIS internal IWAM_** user, but I haven't got a clue where to
look.

Thanks in advance
Ryan Dahl


ASP-SAMPLE:

<html>
<head>
<title>Test</title>
</head>
<body>
<%

dim wmpObj
wmpObj = CreateObject("WMPlayer.OCX")

wmpObj.URL ="http://www.dr.dk/netradio/Metafiler/asx/dr_p2_128.asx"
wmpObj.controls.play()

dim error_count
error_count = wmpObj.error.errorCount

if error_count > 0 then
response.write("<p>" &
wmpObj.error.item(error_count-1).errorDescription & "</p>")
end if

%>
</body>
</html>

VBS-SAMPLE:

Dim oWMP
Set oWMP = CREATEOBJECT("WMPlayer.OCX")

oWMP.URL = "http://www.dr.dk/netradio/Metafiler/asx/dr_p2_128.asx"
oWMP.controls.play()

WScript.Sleep(100000)

Re: WMPlayer ActiveX Control - only fails when using IIS by Ryan

Ryan
Sun May 28 15:56:26 CDT 2006

On Sun, 28 May 2006 00:48:54 +0200, Ryan Dahl
<junk_this_way@hotmail.com> wrote:

>I've tried to reproduce this error in a vbs-file, but this works
>without any problems. I have a suspicion that restrictions might apply
>for the IIS internal IWAM_** user, but I haven't got a clue where to
>look.
>

...never mind - got it fixed.

/Ryan