0

Is there a way to define MIME Types in ASP.NET MVC3 while debugging? I read that you have to define them for the IIS 7 config. but I would like to know if the jplayer videos work if I somehow can define the MIME Types while debugging in IE9. The JPlayer videos work for me in all browsers except IE9.

Morgan Soren
  • 563
  • 4
  • 14
  • 33
  • How do you return a stream for a video? Is it an .ashx handler or just a direct path to your video? (By the way, I strongly recommend to deploy to a local IIS instance and remote-debug it when needed, so you can get Accept-Ranges header as well) – Dmitriy Jul 12 '12 at 14:31
  • its just a direct path, it works for me when I publish the project to the IIS. However, while I'm debugging, it doest work. Im guessing that it works when I publish to the IIS because I defined the MIME Types in the IIS config. I just want to know if there is a way to make it work while debugging (this problem only happens in ie9). – Morgan Soren Jul 13 '12 at 06:41

1 Answers1

0

If that was an .ashx handler (which I also recommend to use instead of direct paths, as it will allow you to perform some security checks) you would be able to add whatever headers you want to the Response object in code-behind. Otherwise, I think you can't take control of mime types or whatsoever. That was discussed here.

Community
  • 1
  • 1
Dmitriy
  • 1,852
  • 4
  • 15
  • 33
  • It could be a good idea to stop using cassini and just change the config properties of the app to use the local IIS as its recomended in the post you linked. – Morgan Soren Jul 17 '12 at 17:36