<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Running Vbs script for Sleeping map services in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/running-vbs-script-for-sleeping-map-services/m-p/503597#M2404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran Joshua's vbs script to cure sleeping map services issues. It ran great in outside dmz server but not in inside. These two machines are identical, window 2008. 64 bit, sp2. the most current window updates are installed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gave me an error message like 'The object invoked has disconnected from its clients', code: 80010108, source: null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+++++++++++++++++++++++++&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joshua Campbell's script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'declare web app variable, set variable to be an IE application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim webApp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set webApp= CreateObject("InternetExplorer.Application")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'set visibility of the web app, can be set to false to run in the background&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;webApp.Visible = true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'declare a counter variable as integer, set it to zero&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim counter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;counter = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'declare array to hold names of different services&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'simply increase the array by +1 and add a new entry for every new service that gets published&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dim services(6)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(0)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(1)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(2)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(3)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(4)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(5)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(6)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'the following loop uses the REST API and the array to step through each service page&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'wait 5 seconds, then navigate to the next service. The loop runs 5 times.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do while counter &amp;lt; 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each x in services&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webApp.Navigate "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverName/ArcGIS/rest/services/" rel="nofollow" target="_blank"&gt;http://serverName/ArcGIS/rest/services/&lt;/A&gt;&lt;SPAN&gt;"&amp;amp; x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wscript.sleep(5000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next'&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; counter = counter + 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loop&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;webApp.quit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set webApp = nothing&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Aug 2010 18:00:25 GMT</pubDate>
    <dc:creator>MikeJun</dc:creator>
    <dc:date>2010-08-24T18:00:25Z</dc:date>
    <item>
      <title>Running Vbs script for Sleeping map services</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/running-vbs-script-for-sleeping-map-services/m-p/503597#M2404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran Joshua's vbs script to cure sleeping map services issues. It ran great in outside dmz server but not in inside. These two machines are identical, window 2008. 64 bit, sp2. the most current window updates are installed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gave me an error message like 'The object invoked has disconnected from its clients', code: 80010108, source: null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+++++++++++++++++++++++++&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joshua Campbell's script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'declare web app variable, set variable to be an IE application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim webApp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set webApp= CreateObject("InternetExplorer.Application")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'set visibility of the web app, can be set to false to run in the background&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;webApp.Visible = true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'declare a counter variable as integer, set it to zero&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim counter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;counter = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'declare array to hold names of different services&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'simply increase the array by +1 and add a new entry for every new service that gets published&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dim services(6)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(0)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(1)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(2)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(3)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(4)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(5)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services(6)="serviceName/MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'the following loop uses the REST API and the array to step through each service page&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'wait 5 seconds, then navigate to the next service. The loop runs 5 times.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do while counter &amp;lt; 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each x in services&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webApp.Navigate "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverName/ArcGIS/rest/services/" rel="nofollow" target="_blank"&gt;http://serverName/ArcGIS/rest/services/&lt;/A&gt;&lt;SPAN&gt;"&amp;amp; x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wscript.sleep(5000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next'&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; counter = counter + 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loop&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;webApp.quit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set webApp = nothing&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 18:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/running-vbs-script-for-sleeping-map-services/m-p/503597#M2404</guid>
      <dc:creator>MikeJun</dc:creator>
      <dc:date>2010-08-24T18:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Running Vbs script for Sleeping map services</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/running-vbs-script-for-sleeping-map-services/m-p/503598#M2405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using ArcGIS Server 10.0, check out this new service option to check/repair invalid connection to data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See section "Checks for invalid data connections" in this help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//009300000069000000.htm"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//009300000069000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 18:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/running-vbs-script-for-sleeping-map-services/m-p/503598#M2405</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2010-09-03T18:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Running Vbs script for Sleeping map services</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/running-vbs-script-for-sleeping-map-services/m-p/503599#M2406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm running into this same problem, this script works fine on my Windows 2003 box but on my 2008 R2 box it blows up with the error: The object invoked has disconnected from its clients.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 14:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/running-vbs-script-for-sleeping-map-services/m-p/503599#M2406</guid>
      <dc:creator>AnthonyScilingo</dc:creator>
      <dc:date>2011-07-07T14:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Running Vbs script for Sleeping map services</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/running-vbs-script-for-sleeping-map-services/m-p/503600#M2407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You only have to "run it as Administrator". For example, run a cmd as administrator and execute it directly and I think it shouldl work well, at least for me it does. If you want to run it as a automated task in Windows 2008, you have to mark in the general tab the checkbox with a text similar to "run it with elevated privileges" (I don't know what's exactly the label of the checkbox in the english version of the operating system).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 11:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/running-vbs-script-for-sleeping-map-services/m-p/503600#M2407</guid>
      <dc:creator>SantiagoHorcajo</dc:creator>
      <dc:date>2013-07-19T11:19:24Z</dc:date>
    </item>
  </channel>
</rss>

