Symptoms
The server has two network interface cards (one public network, the other private one). At various points while using Sitebuilder from a client computer, the web browser quits trying to connect to the public IP address and starts trying to connect to the private IP address.Resolution
By default, it uses automatic address binding for site previews based on IIS settings.
It works in following way:
- It takes first IIS binding in the list.
- If a host header is specified then it uses the host header.
- If the header is not set then it takes an IP address.
- If IP address is not set it takes the first IP from the network adapter IP list.
- If the port is set then it uses as addon to address that was get on the previous steps.
So the problem can be resolved by configuring exact IP address or host header in the _first_ binding.
If some custom configuration is used and the solution above is unacceptable, the base address for the site previews can be configured manually:
1. Open %SB_DIR%\Hosting Srevice\bin\HostingService.exe.config
2. Edit file and configure required address:
<configuration>...<appSettings>
<add key="PreconfiguredUrl"value="http://yourserver.com:2006/Sites" />
</appSettings>..</configuration>
After applying changes it is necessary to restart Sitebuilder's services:
net stop SBPreviewHost
net stop SBUpdater
net start SBPreviewHost
net start SBUpdater{cle{
Then please restart Sitebuilder site's application pool as well.