WCF and Silverlight on IIS setup
Thursday, March 20th, 2008
Both involve MIME type setup on IIS.
1. WCF: If your WCF does not work on your production IIS server, most likely the .svc MIME type is not registered, I used the following command line to fix it:
c:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg -i
2. Silverlight, you need to register the .xap MIME type, for IIS 7, simply using the following command line:
C:\windows\system32\inetsrv\appcmd set config /section:staticContent /+[fileExtension='.xap',mimeType='application\x-silverlight-app']
For both cases, the "C:\Windows\" directory path depends on where your OS is installed.
This entry is filed under ASP.NET, SOA, Silverlight. You can follow any responses to this entry through the RSS 2.0 feed.You can leave a response, or trackback from your own site.