一,如果使用了Access数据库,部署到64位的服务器上时,需要修改网站所在的应用程序池的高级设置,允许运行32位的应用程序为ture。
二 ,调用了Web服务,在部署Web服务的时候,要输入,修改Xap中的配置文件ServiceReferences.ClientConfig,服务的地址要写成域名的形式,比如ddress="http://www.ddddddd:8080/App/VolunteerAction/MyWebService.asmx" 如果端口号不是80的话,要在地址上添加服务的端口号。
三 .发布C# web Service的时候,局域网内的计算机可以访问到web服务,部署到外网之后,只能查看暴露出来的接口,却不能调用,在此需要在Webconfig里面修改配置文件,增加传输协议的支持,在 <system.web> <webServices> 节点下增加
<system.web>
<compilation debug="true" targetFramework="4.0" />
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
</webServices>
</system.web>
这样服务可以对外使用了。