ChewDoggie
Programmer
hello all,
This is complicated but I'll start with the first error I have encountered. Whenever a user would click on a link on our site to open a .wmv file, the user would always get a "file not found" error and the Windows Media player wouldn't launch.
To combat this, I created an httphandler and added this entry in my web.config:
Now, whenever the user clicks on a .mwv link, the code in my custom handler executes (as it should) and the file opens in Windows Media Player and life is perfect.
Then......I deployed my app to the test server and it barfed ! The same old errors are occurring again, i.e., "File not Found". I'm not convinced that the custom handler is even executing so I put some code in there to write to a text file, re-compiled and copied to the test server but nothing is being written so I don't think it's executing at all.
If anyone can see anything I'm missing, please don't hesitate to jump in.
Thanks!
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.
This is complicated but I'll start with the first error I have encountered. Whenever a user would click on a link on our site to open a .wmv file, the user would always get a "file not found" error and the Windows Media player wouldn't launch.
To combat this, I created an httphandler and added this entry in my web.config:
Code:
<httpHandlers>
<add verb="*" path="*.wmv" type="MyNamespace.MyFileHandler, MyFileHandler"/>
...
</httpHandlers>
Now, whenever the user clicks on a .mwv link, the code in my custom handler executes (as it should) and the file opens in Windows Media Player and life is perfect.
Then......I deployed my app to the test server and it barfed ! The same old errors are occurring again, i.e., "File not Found". I'm not convinced that the custom handler is even executing so I put some code in there to write to a text file, re-compiled and copied to the test server but nothing is being written so I don't think it's executing at all.
If anyone can see anything I'm missing, please don't hesitate to jump in.
Thanks!
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.