大佬教程收集整理的这篇文章主要介绍了WCF RIA Services 部署问题,费了2天终于解决了,先把经验分享,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我在使用ADO.NET Entity Data Model生成 * .edmx,然后利用Domain service 生成服务。在Silverlight中调用服务中的方法。以上过程在VS2010中一切正常,当我想将程序部署在IIS6的时候,程序可以跑起来,但是怎么也没办法获得sql server数据。总是提示“远程服务器返回了错误: NotFound。”;
1:跨越xml已经添加在跟目录;
2:系统所使用的dll均已拷贝纸Bin目录下;
3:利用动态svc地址访问http://localhost:8000/wcf/services/sl_WcfRia-web-hwDomainContext.svc无法获得服务页面,在VS2010运行环境范围时可以访问;
各位朋友,可否知道服务器上那里设置出现了问题,到时svc服务在IIS上无法访问的原因。等待大家的帮助,谢谢!
运行环境情况:
1:开发环境和服务器是一台机器(系统:windows xp;数据库:2005 sql Server;IIS:5.1)
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application,please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<customErrors mode="On"/>
<sy@L_874_17@.webServer>
<modules runAllManagedModulesForAllrequests="true">
<add name="DomainserviceModule" preCondition="managedHandler" type="Sy@L_874_17@.serviceModel.Domainservices.HosTing.DomainservicehttpR_837_11845@odule,Sy@L_874_17@.serviceModel.Domainservices.HosTing,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
</sy@L_874_17@.webServer>
<sy@L_874_17@.web>
<httpR_837_11845@odules>
<add name="DomainserviceModule" type="Sy@L_874_17@.serviceModel.Domainservices.HosTing.DomainservicehttpR_837_11845@odule,PublicKeyToken=31bf3856ad364e35" />
</httpR_837_11845@odules>
<compilation debug="true" targetFramework="4.0"/>
</sy@L_874_17@.web>
<sy@L_874_17@.serviceModel>
<serviceHosTingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
<bindings>
<basichttpBinding>
<binding name="fooSoap" maxBufferSize="2147483647" maxReceivedmessageSize="2147483647">
<security mode="Transport" />
</binding>
</basichttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<dataContractserializer maxItemsInObjectGraph="2147483647" />
</behavior>
</serviceBehaviors>
</behaviors>
</sy@L_874_17@.serviceModel>
</configuration>
经过上述步聚,部署就可以成功(操作系统:windows 2003 sp2,windowsxp 均可)
以上是大佬教程为你收集整理的WCF RIA Services 部署问题,费了2天终于解决了,先把经验分享全部内容,希望文章能够帮你解决WCF RIA Services 部署问题,费了2天终于解决了,先把经验分享所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。