Cannot display this layer. The data source referenced by this layer may be missing or corrupted.
2007-08-11 16:35 flyingfish 阅读(1702) 评论(1) 编辑 收藏 举报http://forums.esri.com/Thread.asp?c=158&f=1702&t=229699&mc=7
Home Software Knowledge Base Downloads User Forums
ESRI.com | Customer Service | EDN | Training | More ESRI Sites...
You are here: Home > User Forums > arcgis server forums > Thread Replies
ArcGIS Server Forums
ArcGIS Server: Server administration forum
Map Services Not Previewing
Lee Vance
Aug 01, 2007
Re: Map Services Not Previewing
James Schek
Aug 01, 2007
Re: Map Services Not Previewing
Lee Vance
Aug 01, 2007
Re: Map Services Not Previewing
Lee Vance
Aug 01, 2007
Re: Map Services Not Previewing
James Schek
Aug 01, 2007
Re: Map Services Not Previewing
Lee Vance
Aug 01, 2007
Re: Map Services Not Previewing
James Schek
Aug 01, 2007
Re: Map Services Not Previewing
Lee Vance
Aug 02, 2007
• Top Print Reply Alert Moderator
Subject
Map Services Not Previewing
Author
Lee Vance
Date
Aug 01, 2007
Message
When I publish an MXD, whether in ArcGIS Server Manager or in ArcCatalog, sometimes I don't get a preview image. In ArcCatalog, it will say:
"Cannot display this layer. The data source referenced by this layer may be missing or corrupted."
In ArcGIS Server Manager, there's no message. The preview box is simply empty.
The MXD is stored on the server running ArcSDE and ArcGIS Server. The ArcGISSOC and ArcGISSOM both have full control permissions to the folder and subfolders.
I'm running the EDN version of ArcGIS Server 9.2 Advanced with SP2 on top of a SQL 2005 Developer database.
I know this is something simple that I'm forgetting.
Thanks,
Lee Vance
• Top Print Reply Alert Moderator
Subject
Re: Map Services Not Previewing
Author
James Schek
Date
Aug 01, 2007
Message
It sounds like some of your map resources are not accessible from your SOM/SOC.
Can you check the "Logs" page on the Server Manager and see if there are any entries?
James L. Schek
Software Developer
Lawrence Livermore National Laboratory
"Computer Science: A study akin to numerology and astrology, but lacking the precision of the former and the success of the latter." --Stan Kelly-Bootle
• Top Print Reply Alert Moderator
Subject
Re: Map Services Not Previewing
Author
Lee Vance
Date
Aug 01, 2007
Message
Hey James,
I deleted the map service and republished the MXD. I've attached the log file. I'm not sure why I'm getting "Bad Login User". I'm connecting using Windows authentication and direct connect. I've given my login full access to the folder and the SDE geodatabases. I also check to make sure soc and som have full control of the folder where the map is saved.
Does this log file give you enough information to figure out what I'm doing wrong?
Thanks,
Lee
• Top Print Reply Alert Moderator
Subject
Re: Map Services Not Previewing
Author
Lee Vance
Date
Aug 01, 2007
Message
Forgot to attach the file.
Log.xls (opens in new window)
• Top Print Reply Alert Moderator
Subject
Re: Map Services Not Previewing
Author
James Schek
Date
Aug 01, 2007
Message
ArcGIS Server runs as ArcGISSOM user. When you test your MXD, it runs as YOU, but when you publish it, it runs as ArcGISSOM.
You probably need to add the ArcGISSOM account to your database.
See this KB for the "official" explanation.
http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=32329
You can use the Microsoft SQL Studio application to add AGSOM as a valid login and to give it permissions to read your SDE database.
If you need help with that, I can try to walk you through.
James L. Schek
Software Developer
Lawrence Livermore National Laboratory
"Computer Science: A study akin to numerology and astrology, but lacking the precision of the former and the success of the latter." --Stan Kelly-Bootle
• Top Print Reply Alert Moderator
Subject
Re: Map Services Not Previewing
Author
Lee Vance
Date
Aug 01, 2007
Message
Thanks for the help. I thought I had done that, but I must have missed it. I feel stupid now.
This is working right now because Server and SDE are running on the same machine, however, when we move this to production, SQL and SDE will be on a data machine and Server will be on a web server.
Since the SOC account is a local account on the web server, how do I give it SQL permissions on the data server? Do I have to create a duplicate account on the remote server or maybe move the SOC account to Active Directory?
• Top Print Reply Alert Moderator
Subject
Re: Map Services Not Previewing
Author
James Schek
Date
Aug 01, 2007
Message
That's the dilema. If you fix the problem too quickly, you feel stupid. If the problem drags on for days, then you're just glad to have it fix. :-)
You actually have three options (all of them equally viable):
1. Create an identical account on the remote server.
2. Create an active directory account.
3. Use mixed-mode authentication and create an SQL-Server-only login for ArcGISSOC.
All decent options. #1 is probably easiest.
James L. Schek
Software Developer
Lawrence Livermore National Laboratory
"Computer Science: A study akin to numerology and astrology, but lacking the precision of the former and the success of the latter." --Stan Kelly-Bootle
• Top Print Reply Alert Moderator
Subject
Re: Map Services Not Previewing
Author
Lee Vance
Date
Aug 02, 2007
Message
Awesome. Thanks for your help. I'm glad to know there are others that have been down that path before us.
Send your comments to: Site Administrator | Terms of Use | PRIVACY | Careers | Copyright © ESRI
Site Map | Site FAQs | Browser Support