[GIS] Having trouble publishing from map documents

arcgis-10.0arcgis-server

I am attempting to create an operational layer for the Flex viewer. I am having difficulty getting my mxd to publish correctly (not visible when on server). Here is the error message I get after I create a layer package and try to publish using publish tool in ArcMap 10.

Possible cause of connection failure: the soc cannot resolve the path
to the data, or the soc account has not been granted read permissions
of the data. In the case of ArcSDE, direct connect may not be
configured properly, or the soc account may not have permission to
access the database.

Any one know what I should do?

Best Answer

Solution I ran into this same problem. The data was stored in SDE, connecting with an SDE user account, not the same SOC account. The problem is that SOC does not have access to the SDE connection file (.sde). This was resolved when I copied the sde connection to a folder accessible by the SOC user.