Computer and Software Support


FP2000: Error Message Saving Changes to Web: Cannot Open File ...\_vti_pvt\Service.lck for Writing

This is an article from Microsoft's knowledge base. Its copied here and I have the link to the article on their website because sometimes the locations will change on other company websites and This link will become broken. This will ensure that you will have access to the file by copying it here. On the downside is that if they update the article, this article will not be updated unless I am aware of it. Here is the link to Microsoft's article...Microsoft Knowledge Base Article - 303255

This article was previously published under Q303255

SYMPTOMS

When you attempt to save changes made to a Web on your hard disk, you may receive an error message similar to the following:
 

Cannot open file ...\_vti_pvt\service.lck for writing.

CAUSE

This behavior occurs if the Web was copied from CD-ROM so that all .lck files were marked as read-only.

RESOLUTION

To resolve this problem, remove the read-only attribute. To do this, use either of the following methods.

Method 1: Change the Attributes of the Webs and Subwebs in Windows

  1. Right-click Start, and then click Explore. NOTE: Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.

     
  2. On the Tools menu, click Folder Options.
  3. On the View tab, click to select the Show hidden files and folders check box, and then click to clear the Hide file extension for known file types check box.
  4. Click OK.
  5. In the Folders list, double-click the folder that contains your Web.
  6. Double-click the _vti_pvt folder.
  7. Delete any files that end with .lck.
  8. Right-click the Service file, and then click Properties.
  9. Click to clear the Read Only check box, and then click OK.
  10. Right-click the Services file, and then click Properties.
  11. Click to clear the Read Only check box, and then click OK.

Repeat these steps for any subwebs.

Method 2: Change the Attributes by Using the XCopy Command at the Command Prompt

  1. Create a folder in the root of the C: drive. For example, create a folder called Website.
  2. On the Windows Start menu, click Run.
  3. In the Open box, type command to open the command prompt.
  4. Type xcopy f: /h /s c:\website where f is the drive letter of the CD-ROM or DVD-ROM Drive.
  5.  Press ENTER
   
  • This will copy all of the files from the CD-ROM to the folder you created in step 1.
  • Now you can open the Web in FrontPage and publish it to another destination on the hard disk if you want.

    MORE INFORMATION

    For additional information about the service.lck file, click the article number below to view the article in the Microsoft Knowledge Base:

     

    The information in this article applies to:

    • Microsoft FrontPage 2000