1. 安装IIS,NetFramwork 4.0 ,ArcGis Server; 注意安装完IIS 后立即检查IIS是否可用,否则后续步骤做了也没有用。
2. 检测完成后,跨域文件分别放到IIS ArcGis 实例,WCF 根目录。
3.开始IIS NetFramwork 4.0 支持。
注意
1.以上是IIS6, 如果是IIS7 则是更换应用程序池为4.0
2.服务器为Window Server 2003 或者2008 跨域文件不起作用,提示Destination: DefaultHTTP, 则应该修改跨域文件加一句话:
<allow-http-request-headers-from domain="*" headers="*" secure="true"/>
3.如果服务器为64位操作系统,则编译32位的程序时,最好采用64位的编译器
4.如果服务器为64位操作系统,同时记得 开启IIS 64位支持,IIS 默认只支持32。
常见错误:
1.Destination: DefaultHTTP
原因:操作系统版本+ flah Player 9 以上共同作用造成的
解决: <allow-http-request-headers-from domain="*" headers="*" secure="true"/>
2.Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://192.168.1.162:87/QueryStatisticsServices.svc?wsdl)
原因:1.SDK bug: 详见:http://forums.adobe.com/message/3345972#3345972
2.可能放了跨域文件,但还是报相同的错误,则换个目录,目录不要太深,重新发布。
3. http://localhost:81/index.html 可以访问WCF 且地图也加载,但用IP 访问 http://192.168.1.162:81/index.html 可以访问WCF,但地图不加载
原因: 不知道ArcGis出于什么原因,如果你用IP访问主页,里面地图服务也要用IP: http://ip/arcgis/rest/...