Microsoft KB Archive/170551

= ADT/ODE: Transporter and Synchronizer Can't Share Log File =

Article ID: 170551

Article Last Modified on 10/20/2003

-

APPLIES TO


 * Microsoft Office 97 Developer Edition
 * Microsoft Access Developer's Toolkit 1.1

-



This article was previously published under Q170551



Advanced: Requires expert coding, interoperability, and multiuser skills.



SYMPTOMS
When you start Microsoft Replication Manager, you may receive the following error message:

Sharing Violation while attempting to open log file in Deny Write mode.

This is followed by the following error, depending on which version you are using.

In Microsoft Replication Manager 3.5
Microsoft Replication Manager can't start the Synchronizer. Without the Synchronizer running, no synchronization of data can occur.

Do you want to work without the Synchronizer?

Synchronizer could not be initialized.

In Microsoft Replication Manager 3.0
Microsoft Replication Manager can't start the Transporter. Without the Transporter running, no synchronization of data can occur.

Do you want to work without the Transporter?

Transport could not be initialized.



CAUSE
You are trying to run Transporter and Synchronizer at the same time, and both are configured to use the same log file.



RESOLUTION
Reconfigure either Transporter or Synchronizer to use a different log file.



STATUS
Microsoft has confirmed this to be a problem in Microsoft Access Developer's Toolkit 7.0 and Microsoft Office 97 Developer Edition Tools.



MORE INFORMATION
When Synchronizer and Transporter start, they attempt to open their log files for write access, and deny write access to other applications. If Synchronizer and Transporter are configured to use the same log file, the first application started can successfully access the log file for this mode. However, this prevents the second application from accessing the file in the same mode, and an error occurs during startup.

Steps to Reproduce Problem
 Start Microsoft Replication Manager 3.0. On the Tools menu, click Configure Microsoft Replication Manager. Add a managed folder if one is not in the list, and then click Next. The folder you select does not need to contain any replicas. Select a shared network folder for indirect synchronizations, and then click Next. In the "Path to Log File" box, type:

C:\My Documents\Transporter.log

Click Finish. Transporter will start on your computer.</li> On the File menu, click Exit and Stop Transporter.</li> Start Microsoft Replication Manager 3.5.</li> On the Tools menu, click Configure Microsoft Replication Manager.</li> Click Next.</li> Click to select the Support Indirect Synchronization check box, and then click Next.</li> Click Next.</li> Select a shared Network folder for indirect synchronizations, and then click Next.</li> Click No to indicate that your computer is not an Internet server, and then click Next.</li> In the "Path to Log File" box, type:

C:\My Documents\Transporter.log

Note that this is the same path selected for the log file in step 5.</li> Click Finish. Synchronizer will start on your computer.</li> Quit Microsoft Replication Manager 3.5. Do not stop Synchronizer.</li> Start Microsoft Replication Manager 3.0. Note that you receive the errors described in the "Symptoms" section.</li></ol>

<div class="references_section">