部署Web App时遇到问题,在ESRI bbs上提问贴如下:
请教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程序创建域帐户故障