Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have Gridview when i click play it will play audio file it will get directory from database and play the audio by opening windows media player it working fine in visual studio i am using System.Diagnostics.Process in my code.I hosted application in IIS where OS is Windows 7 when i try to play its not opening windows media player and not playing audio file.

What I have tried:

I had seen suggestions in Internet where i need to give permission to IIS admin Service to interact with desktop applications but i hadn't seen any IIS admin Service in Services.msc.

Any one can suggest me
Posted
Updated 14-Mar-17 3:58am
Comments
CHill60 14-Mar-17 10:00am    
So is it trying to load the audio file from the server? Have you stored the file in an accessible location? Are you using the correct relative path to the file (you can't say C:\foldername\filename for example)
Member 12085957 14-Mar-17 10:22am    
Yes folder is accessible
CHill60 14-Mar-17 10:25am    
On server or local PC?
Member 12085957 15-Mar-17 1:46am    
local pc

1 solution

There are a number of answer for this in Google Search: asp.net play audio file - Google Search[^]
 
Share this answer
 
Comments
Member 12085957 16-Mar-17 9:12am    
@Grant Thanks for your suggestions but my case is i have to play the audio from directory of PC not from IIS Application path or from Database

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900