views:

198

answers:

1

I would like to serve xbaps from the VS web dev server (cassini) to Firefox, but when served from the dev server, Firefox offers to download this file. As far as I can tell, this is because the dev server is serving the xbap file with a mime type of "application/octet-stream" instead of "application/x-ms-xbap", which works when served from IIS.

Does anyone know how to change the mime type which the dev server uses for *.xbap files?

+1  A: 

you can't. WevDev.WebHost is fairly clumsy when issuing content-types and has a very limited range of specific content-types.

You can use CassiniDev. The latest release provides extended content-type support, including .xbap.

see http://cassinidev.codeplex.com/SourceControl/changeset/view/49870#894160 for a complete list of supported types.

Update: your problem may be that you installed FF after 3.5sp1 and do not have the NPWPF.dll in your FF plugins directory. Do you have this file?

Update 2 I have just released a version of CassiniDev that is a great drop in replacement for Visual Studio's Development server. It's enhancements include improved content-type support and integrated traffic logging/viewing.

http://skysanders.net/subtext/archive/2010/05/22/release-cassinidev-for-visual-studio-2008-a-drop-in.aspx

Sky Sanders
Hi, will try out CassiniDev - I didn't see any obvious links on whether I could use it as a drop in replacement - will have to google some more. WRT your problem, I've found that just copying in NPWPF.dll, either into the FF plugins directory or "C:\Windows\Microsoft.NET\Framework\v3.5\Windows Presentation Foundation" gets it going again. We had this problem when upgrading to Windows 7 machines.
Douglas
@douglas - i just released the visual studio replacement - http://skysanders.net/subtext/archive/2010/05/22/release-cassinidev-for-visual-studio-2008-a-drop-in.aspx - give it a shot and leave a review/feed back on the codeplex site.
Sky Sanders
I'm now using CassiniDev for this, and it's working perfectly.
Douglas
@douglas- glad to hear that it is working well for you. I like it too.;-)
Sky Sanders