p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: Re: Help Required for Windows Media Server


Message #1 by revans@c... on Sun, 16 Jun 2002 18:28:47
> > -----Original Message-----
> > From: Harshad Dixit [mailto:harshad@m...]
> > Sent: 29 June 2000 11:35
> > To: wrox.com
> > Subject: Help Required for Windows Media Server 
> > 
> > 
> > Hello 
> > 
> > Subject : Accessing windows media server in ASP pages.
> > 
> > I am working on windows 2000. I want to access the streeming 
> > components called nschmgr.ocx in asp page. I want to connect 
> > media server through IIS.for that I am writing the code as follows
> > 
> > <%set myServer = server.createObject("NSChannelMgr.1")
> > myServer.connect "localhost"%>
> > 
> > This givs me the error accrss denied (Error Number 80070005) 
> > and at the same time when i execute he code using same object 
> > then it works okay. 
> > 
> > NSChannelMgrObj.1 error '80070005' 
> > Access is denied. 
> > /stream.asp, line 7 
> > 
> > So please can u help me to solve this issue. Is there 
> > anyspecialsettingthere in IIS for talingtothe other 
> > server(like "Media server")?.I also one through the security 
> > setting for windows 2000 but the setting seems to be okay...
> > 
> > Following is the code that i am writing
> > **************************************************************
> > *********
> > <object id="NSstationMgr" runat=server 
> > Classid="CLSID:B00464B3-67D4-11D0-A464-00C04FC29CFB"></object>
> > <%call ConnectToServer()
> > Function  ConnectToServer()
> > 	NSstationMgr.Connect "200.1.1.78"
> > 	call ShowStations()
> >     if err.number = 0 then
> > 	call ShowStations()
> > 	call showStreams()
> > 	if NsStationMgr.Channels.count > 0 then
> > 	   set myStation=NsStationMgr.Channels.Find("MyStation")
> > 	end if
> > 	if NsStationMgr.Streams.count > 0 then
> > 	   set myStream=NsStationMgr.Streams.Find "streamAlias.value")
> > 	end if
> >     end if
> > end Function%>
> > **********************************************************************
> > 
> > So please help me to sortoutthis issue...
> > 
> > 
> > 
One of the things that may help you get over the hump is to put the 
IUSR... account in the Administrators group.  Not a permanent solution, 
but try it and reboot.

-Roger

  Return to Index