Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Use Windows Media Player on asp.net 2.0 page?
dlflannery
#1 Posted : Friday, April 24, 2009 8:06:03 AM(UTC)
Groups: Member
Joined: 4/24/2009(UTC)
Posts: 2
Location: Englewood, Ohio

I've tried the free asp.net media player control on my .aspx page. It works fine when I use the (local) debug web server built into VS2005. When I try to load the page using Cassini over my intranet it shows the control, but won't play the .wmv file. The WMP error detail is: can't find the file. Either there is something wrong with my movie URL (I've tried many variations -- its a file on the "server") or the Cassini server just won't do it.

I've also tried the httpHandler patch you provided in another forum thread. If I use path="*.*" it prevents the WMP player from even appearing on the page. If I change the path to *.wmv the player appears but I get the same behavior as before.

Any help will be appreciated and thanks for Cassini!
dlflannery
#2 Posted : Friday, April 24, 2009 11:10:27 AM(UTC)
Groups: Member
Joined: 4/24/2009(UTC)
Posts: 2
Location: Englewood, Ohio

I got it working. Problem was file permissions, I think. What my experience shows is:

1. You can't put the media file in either the bin or App_Data folders of the web site folder but you can make another subfolder (e.g., "movies") and put it there.

2. You can point the URL to another drive if the the location is network shared. In that case the URL syntax is:

//192.168.0.223/Videos/<subfolder>/<video file name>

Where //192.168.0.223/Videos/ is the shared name of the folder containing <subfolder>, which contains <video file name>

Thus the asp.net media player control seems to work fine

Also the httpHandler patch I mentioned seems to have no bearing on this and isn't necessary


Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.