一,如果使用了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>
這樣服務可以對外使用了。