cancel
Showing results for 
Search instead for 
Did you mean: 

Silverlight MIME type

markheath
Grafter
Posts: 55
Registered: ‎30-07-2007

Silverlight MIME type

any chance we could get the MIME type set up correctly for hosting Silverlight applications
for .xap files, it the MIME type should be application/x-silverlight-app
thanks
Mark
4 REPLIES 4
ramidoodle
Grafter
Posts: 265
Registered: ‎28-09-2008

Re: Silverlight MIME type

That's an interesting one.
I'm not sure if there's many customers using this on PN webspace. if we add the MIME Types for xaml, xap and xbap we will have to restart all of our Apache servers I suppose, because it requires editing httpf.conf on each server.
there are plans of upgrading the CCGI webspace so I think it would be a good idea to add the MIME Types to them as well once the new platform is up and running.
Meanwhile, if you raise a ticket on your account we might be able to get this reviewed by PN Net-Ops on Monday
markheath
Grafter
Posts: 55
Registered: ‎30-07-2007

Re: Silverlight MIME type

OK, I've raised a ticket. Shame about having to restart the servers. Hopefully at least you can edit httpf.conf ready for the next reboot.
It would be nice for PAYH to offer this support. My other webspace is a fasthosts Linux account and they have refused to set the MIME types up for me
csogilvie
Grafter
Posts: 5,852
Registered: ‎04-04-2007

Re: Silverlight MIME type

If it's on the homepages platform, then create a .htaccess file in the root of your webspace with:

AddType application/x-silverlight-app .xap

and it should now correctly serve your .xap as application/x-silverlight-app
Information on .htaccess files
markheath
Grafter
Posts: 55
Registered: ‎30-07-2007

Re: Silverlight MIME type

brilliant, that works great for me. thanks very much.