在IIS 发布Web App时使用ArcGIS Server Local services可能遇到的问题

 部署Web App时遇到问题,在ESRI bbs上提问贴如下:

Server DotNET ADF部署问题

请教Server9.2 .NET ADF开发的应用得部署问题。
在VS2005中调试时运行正常,但是部署到iis6,或者放到iis6中调试,总是异常。
跟踪后发现:连接arcgis server服务器异常,但是我已经把aps.net的帐户加到arcgisuser组,为何连接不上,配置中有什么要点吗?
另外我的dotnet ADF的帮助中ms-help://MS.VSCC.v80/MS.VSIPCC.v80/ESRI.EDNv9.2/NET_ADF/developer/ADF/deployment.htm(拷到IE中就可以导航过去)
一般正常一半后边是乱码,咋回事?拷贝到其他编辑器中后就是正常的。

 

仔细阅读文档发现:

ms-help://MS.VSCC.v80/MS.VSIPCC.v80/ESRI.EDNv9.2/NET_ADF/developer/ADF/deployment.htm最后一段讲道:

To update the ArcGIS Identity

If your Web Mapping Application uses ArcGIS Server Local services, an identity is stored in the website for accessing those services. If a different GIS server or ArcGIS user is used for deployment than for development, you will need to update the identity. This is true even if you use a domain account for the identity and the production computer is a member of the domain.

To update the ArcGIS identity, see instructions in the Help page ASP.NET Identity and Impersonation.

Google+MSDN 关键字“ASP.NET Identity and Impersonation ”后问题解决:

主要是需要在asp.net中模拟操作系统用户,在web.config的<system.web>节下增加:

<identity impersonate="true" userName="account" password="pass" />

即可。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值