Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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: http://www.iis.net/ConfigReference/system.webServer/staticContent/mimeMap

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
add comment

Your Answer

 
discard

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.