Article ID: 114395, created on Jul 18, 2012, last review on May 10, 2014

  • Applies to:
  • Sitebuilder 4.5 for Windows

Symptoms

In trial plan it's configured to remove trial sites in several days. For example:

Users > Plans > Trial Plan
--->8---
Trial sites lifetime 20 days
---8<---


But trial sites are not removed automatically. Why?

Cause

Trial sites are removed by "Sitebuilder for Windows Hosting Service", verify it's started (cmd > service.msc).
Trial sites may not be removed when the following errors are shown in the log file:

%sitebuilder dir%\_logs\HostingService.log
--->8---
2012-07-14 23:59:26,274 [6] DEBUG SWsoft.SiteBuilder.Hosting.PreviewHostService - Start anonymous site deletion
2012-07-14 23:59:28,586 [6] ERROR SWsoft.SiteBuilder.Hosting.PreviewHostService - Error calling web services:
System.Net.WebException: The remote name could not be resolved: 'HOSTNAME.'                                     
   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
   at System.Net.HttpWebRequest.GetRequestStream()
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at SWsoft.SiteBuilder.Hosting.SiteWebService.SiteWebService.DeleteExpiredAnonymouseSites()
   at SWsoft.SiteBuilder.Hosting.PreviewHostService.InitAnonymousSiteDeletion(Object state)
---8<---


or

%sitebuilder dir%\_logs\HostingService.log
--->8---
2012-07-17 23:59:00,658 [6] DEBUG SWsoft.SiteBuilder.Hosting.PreviewHostService - Start anonymous site deletion
2012-07-17 23:59:01,471 [6] ERROR SWsoft.SiteBuilder.Hosting.PreviewHostService - Error calling web services:
System.Net.WebException: The request failed with HTTP status 404: Not Found.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at SWsoft.SiteBuilder.Hosting.SiteWebService.SiteWebService.DeleteExpiredAnonymouseSites()
   at SWsoft.SiteBuilder.Hosting.PreviewHostService.InitAnonymousSiteDeletion(Object state)
---8<---

Resolution

Verify valid hostname and port of Parallels Plesk Sitebuilder are set in configuration file:

%sitebuilder dir%\HostingService\Bin\HostingService.exe.config
--->8---
<applicationSettings>
    <SWsoft.SiteBuilder.Hosting.Properties.Settings>
           <setting name="PlanWebService" serializeAs="String">
                  <value>http://sitebuilder.hostname:80/ServiceFacade/PlanWebService.asmx</value>                           
           </setting>
           <setting name="SiteWebService" serializeAs="String">
                  <value>http://sitebuilder.hostname:80/ServiceFacade/SiteWebService.asmx</value>                           
           </setting>
           <setting name="HostingService_NotificationWebService_NotificationWebService" serializeAs="String">
                  <value>http://sitebuilder.hostname:80/ServiceFacade/NotificationWebService.asmx</value>                  
           </setting>
    </SWsoft.SiteBuilder.Hosting.Properties.Settings>
</applicationSettings>
---8<---


Make sure hostname 'sitebuilder.hostname' is resolved from Sitebuilder server and this URLs is valid:

http://sitebuilder.hostname:80/ServiceFacade/PlanWebService.asmx

If you see the error below verify advanced web site identification of Sitebuilder in IIS.

http://sitebuilder.hostname:80/ServiceFacade/PlanWebService.asmx
--->8---
Server Error in '/' Application.
--------------------------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.
Requested URL: /ServiceFacade/PlenWebService.asmx
---8<---


IIS > Web Sites > *find Sitebuilder host* > Properties > Advanced

There should be TCP ports 80 and 2006. Try to add port 80 and restart Sitebuilder web site to apply. If port 80 is used by another web site and cannot be added to Sitebuilder website then you should change paths in HostingService.exe.config:

%sitebuilder dir%\HostingService\Bin\HostingService.exe.config
--->8---
<applicationSettings>
    <SWsoft.SiteBuilder.Hosting.Properties.Settings>
           <setting name="PlanWebService" serializeAs="String">
                  <value>http://sitebuilder.hostname:2006/ServiceFacade/PlanWebService.asmx</value>                    
       
           </setting>
           <setting name="SiteWebService" serializeAs="String">
                  <value>http://sitebuilder.hostname:2006/ServiceFacade/SiteWebService.asmx</value>                           
           </setting>
           <setting name="HostingService_NotificationWebService_NotificationWebService" serializeAs="String">
                  <value>http://sitebuilder.hostname:2006/ServiceFacade/NotificationWebService.asmx</value>                  
           </setting>
    </SWsoft.SiteBuilder.Hosting.Properties.Settings>
</applicationSettings>
---8<---


Restart both services "Sitebuilder for Windows Hosting Service" and "Sitebuilder for Windows Updater Service" to apply the changes. Verify they were restarted:

%sitebuilder dir%\_logs\HostingService.log
---8<---
2012-07-17 17:44:52,311 [6] DEBUG SWsoft.SiteBuilder.Hosting.PreviewHostService - Server registered.
2012-07-17 17:44:52,311 [6] INFO  SWsoft.SiteBuilder.Hosting.PreviewHostService - Started.
2012-07-17 17:44:55,546 [6] INFO  SWsoft.SiteBuilder.Hosting.UpdaterService - Starting ...
2012-07-17 17:44:55,702 [6] INFO  SWsoft.SiteBuilder.Hosting.UpdaterService - Started.
---8<---


Are records that indicate trial sites are removed:

%sitebuilder dir%\_logs\HostingService.log
---8<---
2012-07-18 23:59:00,479 [6] DEBUG SWsoft.SiteBuilder.Hosting.PreviewHostService - Start anonymous site deletion
2012-07-18 23:59:02,213 [3] INFO  SWsoft.SiteBuilder.Hosting.PooledWebApplicationHost - Virtual directory for site #id=155c93aa-739a-421a-870d-02fddd31efff has been deleted.
2012-07-18 23:59:02,479 [3] INFO  SWsoft.SiteBuilder.Hosting.PooledWebApplicationHost - Virtual directory for site #id=808c9539-1087-46f0-9eff-07996508f5b9 has been deleted.
2012-07-18 23:59:02,963 [3] INFO  SWsoft.SiteBuilder.Hosting.PooledWebApplicationHost - Virtual directory for site #id=2ede109c-ef5f-4bcb-82e5-0b138f8188f1 has been deleted.
2012-07-18 23:59:03,338 [3] INFO  SWsoft.SiteBuilder.Hosting.PooledWebApplicationHost - Virtual directory for site #id=5fcf81bd-2911-4f15-a20a-0c19664611dd has been deleted.
2012-07-18 23:59:03,604 [3] INFO  SWsoft.SiteBuilder.Hosting.PooledWebApplicationHost - Virtual directory for site #id=3c07ceff-1141-412a-b9e5-0c6dac14ec05 has been deleted.
2012-07-18 23:59:03,791 [3] INFO  SWsoft.SiteBuilder.Hosting.PooledWebApplicationHost - Virtual directory for site #id=fbc7ab82-f691-4426-b8fb-0e50c4386420 has been deleted.
2012-07-18 23:59:03,963 [3] INFO  SWsoft.SiteBuilder.Hosting.PooledWebApplicationHost - Virtual directory for site #id=feb67d43-2448-4bcf-b67a-1036d1e324f5 has been deleted.
2012-07-18 23:59:04,197 [3] INFO  SWsoft.SiteBuilder.Hosting.PooledWebApplicationHost - Virtual directory for site #id=e0a8a192-64c1-4986-b7c8-11a79d9ccb33 has been deleted.
--->8---

56797cefb1efc9130f7c48a7d1db0f0c 4d336e73be6d8fa81454b57cedf8e2bb fad6dc0c8e983c17ae70a51ac7952cd0 2a62cbceb986d1b8f45bcd3ff4cb29a5 45e8c8798afdb3e279a2f84bd498d19e

Email subscription for changes to this article
Save as PDF