A
Adam Behrle
Hi Everyone,
Has anyone noticed the following behavior in Project Professional
2007, connected to Project Server 2007?
If an enterprise project has changes, and the user closes the file by
going to File > Close or clicking the document 'x', the save/disregard
checkin/checkout dialog is displayed. If the user selects save, the
save events are thrown but the Project seems to be in a strange
unloaded state. If you try to access the project via code, you get "An
unexpected error occurred in the method" exception. You get this even
if you go to the Projects collection.
My best guess is the project is temporarily put in an unloaded state
so it can be cached. However this breaks any code that attempts to
save data into the project before the save occurs.
One workaround is to perform the work in ProjectBeforeClose, anyone
found a cleaner way to do this?
Thanks,
Adam
Has anyone noticed the following behavior in Project Professional
2007, connected to Project Server 2007?
If an enterprise project has changes, and the user closes the file by
going to File > Close or clicking the document 'x', the save/disregard
checkin/checkout dialog is displayed. If the user selects save, the
save events are thrown but the Project seems to be in a strange
unloaded state. If you try to access the project via code, you get "An
unexpected error occurred in the method" exception. You get this even
if you go to the Projects collection.
My best guess is the project is temporarily put in an unloaded state
so it can be cached. However this breaks any code that attempts to
save data into the project before the save occurs.
One workaround is to perform the work in ProjectBeforeClose, anyone
found a cleaner way to do this?
Thanks,
Adam