Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 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:

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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