03

24

在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" />

即可。

参考:

1、通过ASP.net程序创建域帐户故障
2、Server DotNET ADF部署问题




文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: GIS
相关日志:
评论: 0 | 引用: 0 | 查看次数: -
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.