ArcGIS Mapping for Sharepoint

From Wiki.GIS.com

Jump to:navigation, search

Contents

[edit] Deployment

[edit] Manual Deployment

1.) Using stsadm or PowerShell, add the esri.arcgis.mapping.sharepoint.wsp to the SharePoint farm. Using stsadm, the command is:

stsadm –o addsolution –filename <path to wsp file>

2.) From SharePoint Central Admin, PowerShell, or stsadm, deploy the esri.arcgis.mapping.sharepoint.wsp to all web applications requiring ArcGIS for SharePoint functionality.

3.) On all site collections requiring ArcGIS for SharePoint functionality, activate the ArcGIS for SharePoint feature. This can be done through the site settings page, PowerShell, or the stsadm utility.

[edit] Manual Undeployment

1.) Deactivate the ArcGIS for SharePoint feature on all site collections to which it was deployed. This can be done from the Site Settings page of each site collection, via PowerShell, or through the stsadm command line utility.

2.) Uninstall the ArcGIS for SharePoint feature from all site collections to which it was deployed. This needs to be done from PowerShell or the stsadm command line utility

3.) Retract the esri.arcgis.mapping.sharepoint.wsp solution. This can be done from Central Admin, PowerShell, or stsadm. If retraction fails in Central Admin, it will need to be done from PowerShell or stsadm, which can force the retraction.

4.) Make sure that the <Program Files>\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ESRI.ArcGIS.Mapping.SharePoint directory either no longer exists or is empty. If it is not, delete it. This needs to be done on all web front-end (WFE) servers.

5.) Make sure that the ESRI.ArcGIS.Client.* and ESRI.ArcGIS.Mapping.* assemblies have been uninstalled from the GAC. If they have not been, uninstall them. Again, on all WFE servers. If there are failures at any point while performing a SharePoint operation, the most recent log file under <Program Files>\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LOGS may provide further information.

[edit] SSL With Sharepoint Web Part Possible Solution

It should read something like this:

Original:

<?xml version="1.0" encoding="utf-8" ?> <Configuration>

 <Sharing>http://www.arcgis.com/sharing/</Sharing>
 <Secure>https://www.arcgis.com/sharing/</Secure>
 <Print>http://www.arcgis.com/sharing/tools/print</Print>
 <ProxyServer></ProxyServer>
 <ProxyServerEncoded></ProxyServerEncoded>

</Configuration>

New:

<?xml version="1.0" encoding="utf-8" ?> <Configuration>

 <Sharing>https://www.arcgis.com/sharing/</Sharing>
 <Secure>https://www.arcgis.com/sharing/</Secure>
 <Print>https://www.arcgis.com/sharing/tools/print</Print>
 <ProxyServer></ProxyServer>
 <ProxyServerEncoded></ProxyServerEncoded>

</Configuration>

[edit] SharePoint 2010 Management Shell - (PowerShell)

When troubleshooting gets overly complicated, use SharePoint's built in PowerShell (or Management Shell). Launch SharePoint 2010 Management Shell from the Start Menu on the machine which SharePoint has been installed. Remember to do this with Administrative Privileges (run as administrator).


Identify what Web Applications are setup to run Sharepoint

Sample code:

Get-SPFarm |% {$_.Services} | where {'$_.TYPEName -eq "Windows Sharepoint Services Web Application"'} | % {$_.WebApplications} |% {Write-Output $_}

Sample result:

DisplayName Url

SharePoint - 80 http://5997dougsp/

SharePoint Central Administ... http://5997dougsp:48609/


Identify SharePoint product information and output the details to a text file

Sample Code:

get-SPProduct | Format-Table -AutoSize | out-file c:\Temp\ myDevelopmentEnvironment.txt

Sample Result:

Check in C:\Temp for a text file named myDevelopmentEnvironment.txt containing ProductName information.


Identify available site collections where ArcGIS for SharePoint can be installed

Sample Code:

Get-SPSite

Sample Result:

Url

http://5997dougsp

http://5997dougsp/sites/MyTest


Backup a Site Collection before troubleshooting

Sample code:

Backup-SPSite http://<web application name>/sites/site_collection_name -Path C:\Backup\site_collection_name.bak -UseSqlSnapshots

(If -UseSQLSnapShots option fails, the database may not support this feature. In this situation, users should logout of that SharePoint Site Collection before running code below)

Sample code:

Backup-SPSite http://<web application name>/sites/site_collection_name -Path C:\Backup\site_collection_name.bak


Create a new SharePoint Site Collection for testing purposes

Get-SPWebTemplate | Where{ $_.Title -eq "Team Site" } | ForEach-Object{ New-SPSite http://<web application name>/sites/MyTest -OwnerAlias DOMAIN\user -Template $_ }


Remove / Retract / Uninstall the ArcGIS for Sharepoint Web Part

Uninstall-SPSolution –Identity ESRI.ArcGIS.Mapping.SharePoint.wsp –WebApplication http://sp0115997 Remove-SPSolution –Identity ESRI.ArcGIS.Mapping.SharePoint.wsp


Install ArcGIS for SharePoint using PowerShell Commands.

There are several steps to install ArcGIS for SharePoint using PowerShell. Run each command in this section from top down. Also make sure SharePoint 2010 Administration service is running.


Sample code:

Add-SPSolution -LiteralPath C:\Software\ArcGIS_SharePoint_2_1_beta\ESRI.ArcGIS.Mapping.SharePoint.wsp

Sample result:

Name SolutionId Deployed

esri.arcgis.mapping.sharepo... 9d063bff-9818-4733-a883-f7f2afa05eb3 False

Sample code:

Install-SPSolution ESRI.ArcGIS.Mapping.SharePoint.wsp -WebApplication http://<web application name> -GACDeployment

Sample code:

Enable-SPFeature -identity "ESRI.ArcGIS.Mapping.SharePoint.wsp_ArcGIS Map WebPart" -URL http://<web application name>/sites/MySiteCollectionName

Navigation
Need Help
Toolbox
Share This Page