为了在服务器的IIS上跑上Sivlerlight和SCF的webservice通信,折腾了N久,最后搞定了。。呵呵
<------------------------------------------------------------------------------------------------------->
1。在IIS中,添加MIME类型.
MIME 类型
.xaml application/xaml+xml
.xap application/x-silverlight-app
<------------------------------------------------------------------------------------------------------->
2.注册WCF
通过IIS发布本应用程序你必须注册WCF组件(不然无法识别.svc文件,WCF无法通信)
Windows 2003上,请在命令行中运行如下代码注册WCF组件
cd %SYSTEMROOT%/Microsoft.NET/Framework/v3.0/Windows Communication Foundation/
ServiceModelReg.exe -i -x
例如:你的系统装在C:
那么命令如下:
cd C:/Microsoft.NET/Framework/v3.0/Windows Communication Foundation/
ServiceModelReg.exe -i -x
<-------------------------------------------------------------------------------------------------------