银光中国网为方便大家学习Silverlight技术,特别推出Silverlight免费空间服务。看到论坛上有不少开发人员询问在部署WCF或者Web
Service应用时出现异常,无法部署成功,这里我做一个简单的Web Service应用部署演示,希望能够帮到大家。
我在银光中国网下载一个网友提供的“Silverlight操作Access数据库”实例代码。
打开源代码项目,结构如下:其中accessdb是你在银光中国网申请到的免费空间帐号目录,需要根据个人申请名不同修改。
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding
name="WebService1Soap" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
<security mode="None"
/>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint
address="http://space.silverlightchina.net/accessdb/WebService1.asmx"
binding="basicHttpBinding"
bindingConfiguration="WebService1Soap"
contract="ServiceReference1.WebService1Soap"
name="WebService1Soap"
/>
</client>
</system.serviceModel>
</configuration>
完成修改后,可以直接编译项目,在编译成功后,即可发布项目到本地目录:
到此一个Web
Service访问Access数据库应用部署成功。
如果你在部署中遇到问题,欢迎留言讨论。