Server 2003部署Silverlight项目的注意事项

1.如果是iis6或更早版本需要添加MIME类型,如下:
  xap application/x-silverlight-app
  xaml application/xaml+xml
  xbap application/x-ms-xbap
2.安装RiaServices组件:
  方法a:
       msiexec /i RiaServices.msi Server=True
 方法b:
   或者不安装RiaServices.msi,将以下三个dll文件复制到bin:
    system.servicemodel.domainservices.entityframework
    system.servicemodel.domainservices.hosting
    system.servicemodel.domainservices.server
3.server2003 + IIS6,wcf默认没有被enabled,可以执行以下命令:
  c:\windows\Microsoft.NET\Framework\v4.0.30319\ServiceModelReg.exe -i
4.另外,如果生成的entity使用的数据库是sqlserver 2008,但后来实际使用中使用的数据库是sqlserver 2005可能会报“使用的 SQL Server 版本不支持数据类型datetime2”的错误,解决方法:
用记事本或者XML Editor打开edmx文件,搜索ProviderManifestToken值,改为2005就ok了。
原文地址:https://www.cnblogs.com/qingyun163/p/1973283.html