IIS中架设Silverlight 和WCF

来源:互联网 发布:java 第三方线程池 编辑:程序博客网 时间:2024/05/21 22:24

为了在服务器的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
<-------------------------------------------------------------------------------------------------------

 

 

原创粉丝点击