I am trying to deploy a silverlight pivot site, and I ran into the following problem: cxml is only being served correctly from a single directory in the server. If a request the cxml file from it, I get the xml response. If I try another directory, I get a 500 error.

I already added the mime type to the server.

What exactly am I doing wrong?

link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

You need to add that to the list of mime types, its probable that the specific directory where it works it is included locally. You can add it globally using AppCmd.exe:

appcmd.exe set config  -section:system.webServer/staticContent /+"[fileExtension='.cxml',mimeType='text/xml']"

Or use Mime Types feature in IIS Manager.

For more info: http://www.iis.net/ConfigReference/system.webServer/staticContent/mimeMap

link|improve this answer
Thanks! Yes, it seems that that was the problem. There was also some kind of a conflict between the local and server config with cxml. Once I solved those, it began to work. – Hugo Estrada Sep 13 '10 at 12:30
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.