Rank: Advanced Member Groups: Member
Joined: 9/8/2008 Posts: 56 Points: 168 Location: Canada
|
Hi Guys,
With red face, I must admit that it took me along time to figure out why users of my site could not play the video files. It always worked on my development computer.
I did not want to have multiple video files within my web project and decided to move those folders outside of the project so that I could deploy them as a separate entity. I had forgtotten to give the correct permissions to the folders.
It would be beneficial for future users for you to throw 'file not found' and 'file access errors'. I would have saved alot of time second guessing my implementation if I had had a concrete stack trace to look at.
So now, I must ask for a little advice on how best to grant permissions to files that are not within the web project.
A little background. The way I figured the permission thing out was to move one of the video files into the web project. My tester confirmed that this action worked. Lol, then he went to bed.
So, after that, I granted ASPNET permissions to the folders that are located off C:/. I am not quite convinced yet that this permission will do the trick. I am thinking that if it was an ASPNET permission thing, then the application would not have been able to reach those folders even on my development computer. My guess could be wrong.
In previous experience, I have not had problems accessing folders outside of a project. But I get the feeling there is something different in this situation.....and I don't know what it is.
Do you guys have any suggestions on how these permissions should be granted?
Thanks much,
Mark
|
Rank: Advanced Member Groups: Member
Joined: 9/8/2008 Posts: 56 Points: 168 Location: Canada
|
Just an update.
I was able to confirm that giving ASPNET permissions to the folders containing the videos does not work unless I am running the webpage from my development computer (which contains all of the files and the IIS to run the site).
I'm definately not wanting to have to move the files into the web app code files if I can help it; even though moving the files into this location seems to be working.
Do you guys have any ideas as to how I can handle this in a clean manner?
Mark
|
Rank: Advanced Member Groups: Member
Joined: 9/8/2008 Posts: 56 Points: 168 Location: Canada
|
Never mind about how to access files and all. My tech lead at work got a good laugh when I had to admit that relative paths for a website accessing even images had somehow got forgotten by me as I stayed up late nights working on this project.
However, I would still like to see the aspmedia thow errors like "file not found" or "file access denied" errors. It allows the developer a chance to at least give the user a message saying "try another one" or something. Otherwise it just hangs....people wait....and then they give up and leave the site.
|