A
Alex
We are using “Microsoft Project Server 2007†and “Microsoft Project
Professional Client 2007â€.The code we are writing is in C# using “Microsoft
Visual Studio 2008â€.
Most of the work is done in PSI but the connecting project to master project
and adding some dependencies is done in VBA/OLE Automation code (All in
C#.NET).
What we are doing in general is opening a master project with the action
app.FileOpenEx()
then we are adding all the sub projects with the action
app.ConsolidateProjects
And in the end we are finishing with those actions
app.FileSave();WaitForJob();
app.Publish();WaitForJob();
app.FileCloseEx();WaitForJob();
The action WaitForJob is added for sync, cose the code keeps on running
while the server jobs are on the queue, and that is why we are waiting for
the jobs to finish before any action.
All this code does the job correctly and the master project is checked in
along with all the sub projects. But, afterwards when I’m opening the project
again with the same action
app.FileOpenEx();
the project for some reason is opened in readonly mode ( without any dialong
about it ) and when it try to save it opens a dialog “Save To Project†that
lets me save only to a new project co’s the current project is asumed to be
checked out by another user (me).
And I did checked it in the server’s setting the project was checked out by
me ( currently I’m the only user so there is no posible way of it to be
checked out by another user )
I’ve also tried the same action manually directly on the Project
Professional and I got the same result, after closing the project, I tried to
open it and it was opened in read only, unable to save any modification been
done to the project.
I did all updates required for the server and also for the client, but still
the problem occurs.
What can be the cause for this and how can I fix this?
Professional Client 2007â€.The code we are writing is in C# using “Microsoft
Visual Studio 2008â€.
Most of the work is done in PSI but the connecting project to master project
and adding some dependencies is done in VBA/OLE Automation code (All in
C#.NET).
What we are doing in general is opening a master project with the action
app.FileOpenEx()
then we are adding all the sub projects with the action
app.ConsolidateProjects
And in the end we are finishing with those actions
app.FileSave();WaitForJob();
app.Publish();WaitForJob();
app.FileCloseEx();WaitForJob();
The action WaitForJob is added for sync, cose the code keeps on running
while the server jobs are on the queue, and that is why we are waiting for
the jobs to finish before any action.
All this code does the job correctly and the master project is checked in
along with all the sub projects. But, afterwards when I’m opening the project
again with the same action
app.FileOpenEx();
the project for some reason is opened in readonly mode ( without any dialong
about it ) and when it try to save it opens a dialog “Save To Project†that
lets me save only to a new project co’s the current project is asumed to be
checked out by another user (me).
And I did checked it in the server’s setting the project was checked out by
me ( currently I’m the only user so there is no posible way of it to be
checked out by another user )
I’ve also tried the same action manually directly on the Project
Professional and I got the same result, after closing the project, I tried to
open it and it was opened in read only, unable to save any modification been
done to the project.
I did all updates required for the server and also for the client, but still
the problem occurs.
What can be the cause for this and how can I fix this?