Re: wsx to asp ad rotator doesn't work

From: Harry (anonymous_at_discussions.microsoft.com)
Date: 09/29/04


Date: Wed, 29 Sep 2004 09:14:37 -0700

Hi Ravi -- thanks again for your help.

yes, you are correct, the Response.Write did not work. IIS
has anonymous access enabled, and does not have any other
type of access enabled. All of the authorizations and
authentications are disabled on both the WM Serve as well
as the publishing point, execpt for Anonymous
Authentication.

The pub point wsx file has a test file that is called
before the asp page, just so I can tell for sure that the
wsx file was called and read correctly by WMS. It works as
expected. The second entry in the wsx file is the asp page.

I rewrote the test asp page, and you can test it for
yourself. It is http://nick8.surfernetwork.com/wjks/WJKS-
AdRotator.asp. You will see that it will randomly generate
a SMIL to one of three other test wmv files. The SMIL
references are encapsulted in <html> </html> tags, as
shown in the WM resource kit (but, I've tried without the
html tags, and that didn't work either).

I set up each of the three files in a different format,
but none of them work. The first is pathed to WMS and you
can test this yourself. The second is a fully pathed local
disk access, the third is a relative disk path. They are:

mms://nick9.surfernetwork.com/TestFilePubPoint/powered_by_1
00.wmv

d:\wmpub\WMRoot\TestFilePubPoint\snowboard_100.wmv

pinball.wmv

I also just now change the wsx file to call the asp page
three different ways to see if any variations will work,
but none of them do. They are:

http://nick8.surfernetwork.com/wjks/WJKS-AdRotator.asp
httpd://nick8.surfernetwork.com/wjks/WJKS-AdRotator.asp
d:\inetpub\wwwroot\Media\wjks\WJKS-AdRotator.asp

In the case of "httpd", WMS reports an error (rather than
a warning), that it cannot read the file. In the other two
cases it reports a warning that it cannot stream from the
asp page, meaning that at least it was able to find/read
the asp page.

I've been using a packet monitoring utility (Ethereal).
IExplorer appears to not trouble itself to check with the
server once it has handed off a call to the WM Player --
consequently, subsequent calls are passed directly to the
player and the player immediately resumes its connection
to the WM server without checking to see if the wsx file
(or anything else) has changed. As a result of this, I've
been forced to change the test file name every time -- I'm
now up to test40.wmv.

>-----Original Message-----
>Just to be clear, you are saying that changing the
>response.write to Response.Write("<media
>src=""c:\wmpub\wmroot\SoundOfTriState00030020-
>2.wmv"" />") didn't work?
>
>If yes, next thing to check is: What kind of access
>control is enabled on the IIS box? Is Anonymous access
>allowed on the IIS box?
>
>It is possible that IIS has Negotiate Authentication
>enabled (and Anonymous access disabled). If this is the
>case, then it would work when you are logged on as a
valid
>domain user using IE to get the web page but it will fail
>with WMS.
>
>If indeed negotiate is enabled on the IIS, then on the
>publishing point that sources from the playlist, go to
>Properties->"Credentials" and set a valid
>username/password that the IIS server will accept and see
>if that works.
>
>Thx,
>Ravi
>--
>This posting is provided "AS IS" with no warranties, and
>confers no rights.
>
>
>>-----Original Message-----
>>Ravi,
>>
>>I just read about the "network Services" account that
WMS
>>runs under, and gave permissions to that account for the
>>entire IIS file tree, with inheritance. Still doesn't
>work.
>>
>>Harry
>>
>>>-----Original Message-----
>>>Ravi, Thanks for your suggestions.
>>>
>>>I changed the link to a file link (d:/ etc.) If I
remote
>>>into the server and pop that link into a browser, the
>>>media player starts and plays the file correctly, I so
>>>know the link is ok.
>>>
>>>Also, you can access the asp page with a remote
browser,
>>>and it executes correctly -- you can look at the source
>>>that is returned, and it appears to be correctly
>>formatted.
>>>
>>>And also, I added a media file in the wsx preceeding
the
>>>link to the asp file, and that media file plays, so I
am
>>>sure that the server is reading the wsx file.
>>>
>>>But, the media server still reports the error that it
is
>>>unable to stream the media from the asp page.
>>>
>>>The asp page is within the IIS file tree -- is there
>some
>>>type of special premissions required for WMS to access
>an
>>>IIS file? (btw, the HTTP Download plugin is enabled).
>>>
>>>thanks again,
>>>
>>>Harry
>>>
>>>
>>>>-----Original Message-----
>>>>Harry,
>>>>
>>>>Haven't had a chance to try your ASP script, but have
>>you
>>>>directly connected to your ASP file and looked at the
>>>>output (say on a simple web page?)? Does it adhere to
a
>>>>valid WSX syntax?
>>>>
>>>>I am not 100% sure but you might want to see if this
is
>>>>happening in your case: if your ASP file presents a
WSX
>>>>output and that in turn refers to a WMV, then the
>server
>>>>may try to download the WMV from web server. So, for
>>>>testing purposes, see if you can return the complete
>>>local
>>>>path on the server for the content (i.e, change your
>>>>response.write to Response.Write("<media
>>>>src=""c:\wmpub\wmroot\SoundOfTriState00030020-
>>>>2.wmv"" />"). change the directory appropriately) and
>>see
>>>>if the server can stream.
>>>>
>>>>Also, instead of HTTPD create a local WSX that points
>to
>>>>the exact same content you have and see if that
streams
>>>>okay?
>>>>
>>>>Thx,
>>>>Ravi
>>>>--
>>>>This posting is provided "AS IS" with no warranties,
>and
>>>>confers no rights.
>>>>
>>>>>-----Original Message-----
>>>>>Manny,
>>>>>
>>>>>According to the MS literature, httpd references a
>>>>>webserver page that generates a custom playlist file.
>>My
>>>>>interpretation is that the "d" tells the WM server to
>>>>>access a local file via the IIS Webserver.
>>>>>
>>>>>Harry
>>>>>
>>>>>>-----Original Message-----
>>>>>>For one thing, this line is wrong:
>>>>>>httpd://SURFERNET/Media/wjks/WJKS-AdRotator.asp
>>>>>>
>>>>>>Since I don't know what the right URL is I'd guess
by
>>>>>saying
>>>>>>change the httpd
>>>>>>to http
>>>>>>
>>>>>>
>>>>>>
>>>>>>"Harry" <anonymous@discussions.microsoft.com> wrote
>in
>>>>>message
>>>>>>news:26e301c4a427$b0500310$a301280a@phx.gbl...
>>>>>>> Hi,
>>>>>>>
>>>>>>> I can't seem to get a simple test arrgt to work
for
>>ad
>>>>>>> rotation. If anyone can help, I'd really
appreciate
>>>it.
>>>>>>> I've got a wsx assigned to the publishing
>>>>>>> point "TestPubPointForFiles":
>>>>>>>
>>>>>>> <?wsx version="1.0" ?>
>>>>>>> <smil>
>>>>>>> <media src="httpd://SURFERNET/Media/wjks/WJKS-
>>>>>>> AdRotator.asp"/>
>>>>>>> <media src="%requestedUrl%"/>
>>>>>>> </smil>
>>>>>>>
>>>>>>> I have an ASP ad rotator (listed below) located at
>>>>>>> d:/Inetpub/wwwroot/Media/wjks/WJKS-AdRotator.asp.
>>>>>>>
>>>>>>> Right now it only has one file to play, just for
>>>>>testing.
>>>>>>> If it ever plays this file, then I'll know it
works.
>>>>>>> The WM server reports error code 0xc00d158c:
>>>>>>> "The publishing point 'TestPubPointForFiles' is
>>>unable
>>>>>to
>>>>>>> stream from 'httpd://SURFERNET/Media/wjks/WJKS-
>>>>>>> AdRotator.asp', referenced
>>>>>>>
>>>>>in 'file://D:\wmpub\WMRoot\wjks\WJKS_RotatorWrapper.ws
x
>'
>>..
>>>"
>>>>>>>
>>>>>>> <% OPTION EXPLICIT %>
>>>>>>> <HTML>
>>>>>>> <smil>
>>>>>>> <%
>>>>>>> Randomize
>>>>>>> dim Index
>>>>>>> Index=Int(3*Rnd+1)
>>>>>>> select Case Index
>>>>>>> case 1
>>>>>>> Response.Write("<media
>>>>>>> src=""SoundOfTriState00030020-2.wmv"" />")
>>>>>>>
>>>>>>> case 2
>>>>>>> Response.Write("<media
>>>>>>> src=""SoundOfTriState00030020-2.wmv"" />")
>>>>>>>
>>>>>>> case 3
>>>>>>> Response.Write("<media
>>>>>>> src=""SoundOfTriState00030020-2.wmv"" />")
>>>>>>>
>>>>>>> end select
>>>>>>> %>
>>>>>>> </smil>
>>>>>>> </html>
>>>>>>
>>>>>>
>>>>>>.
>>>>>>
>>>>>.
>>>>>
>>>>.
>>>>
>>>.
>>>
>>.
>>
>.
>



Relevant Pages

  • Re: wsx to asp ad rotator doesnt work
    ... >>BTW, you probably have fast cache enabled, so when you ... >>>The pub point wsx file has a test file that is called ... The second entry in the wsx file is the asp ... >>>>control is enabled on the IIS box? ...
    (microsoft.public.windowsmedia.server)
  • RE: OWA 440 login timeout
    ... this issue is related with the anonymous access on ... the Exchweb virtual directory. ... please restart your IIS service and test your issue again. ... PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were ...
    (microsoft.public.windows.server.sbs)
  • Re: adding a new site results in iis error 401.1
    ... it means that the username/password you configured in IIS for the ... The reason you can get a 401.1 for anonymous access is this -- when you ... In general, the other authentication methods are pretty fast, unless your ...
    (microsoft.public.inetserver.iis)
  • Re: Persmission Denied
    ... has only been possible running the asp page directly on my test IIS ... >is your IIS virtual dir set up to use anonymous access? ... strUserDN, objUser ...
    (microsoft.public.scripting.wsh)
  • RE: LOGON_USER through https tunnel
    ... Have you disabled anonymous access? ... Go to IIS Manager, right click on the site and go to Directory Security. ... Click the Edit button in Authentication and access control, ... Subject: LOGON_USER through https tunnel ...
    (Security-Basics)