Microsoft Project files opened with a Read lock from a server ASP page (843576)
The information in this article applies to:
- Microsoft Project 2000
- Microsoft Project 2002
- Microsoft Office Project Professional 2003
- Microsoft Office Project Standard 2003
- Microsoft Project Standard 2002
- Microsoft Project Professional 2002
SYMPTOMSWhen you try to rename or try to move a Microsoft Project
project file (*.mpp) that is in a network share or on your local hard
disk drive, you may receive a sharing violation error
message. Additionally, when you open the project file, changes that you made to the file
are missing.
If you view open connections for the
server or the
computer
where the project file is shared from,
the project file is listed with a live connection to a user, even though the
file may not be in use by that user.CAUSEThis problem may occur if you use the ConData object in a
script from an ASP page to load a Microsoft Project *.mpp project file with the
following ADO Provider connection string: Provider=Microsoft.Project.OLEDB.version_number;PROJECT NAME=Project_Path_File_Name.mpp When the *.mpp file is loaded and is served out by using this ADO
Provider connection string, the file is opened in Read mode and a Read lock is
set on the file on the server. This Read lock will remain active until another
project file is loaded with the same connection method, or until you unload the
ADO Provider. When the server provides the new project file, the Read lock is
removed from first project file. WORKAROUNDTo work around this problem, follow these steps in the order
that they appear:
- Create a blank *.mpp project file.
- Save the file on the server.
- Modify the original script on the ASP page.
- Add the follow code after the first ConData object
allocation:
Set ConData = Server.CreateObject("ADODB.Connection")
ConData.ConnectionString = "Provider=Microsoft.Project.OLEDB.version_number;PROJECT NAME=c:\path\blank_project.mpp"
ConData.Open
ConData.Close
Set ConData = Nothing
After you run the code, the original *.mpp project file that was
locked is released and the lock remains on the blank *.mpp project file.
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.
Modification Type: | Major | Last Reviewed: | 6/6/2005 |
---|
Keywords: | kbprb kbASPObj kbASP kbADO kbpending KB843576 kbAudITPRO |
---|
|