Get latest issue with 3.5 and VS2005
Moderator: SourceGear
Get latest issue with 3.5 and VS2005
Hi
I've just upgraded from 3.1.9 to 3.5.0 of Vault. When I open a VS 2005 solution I have the setting to do a get latest when a solution is open. Also my vault settings specify to overwrite the modified working copy but prompt first.
If there are any files that are writable in the project I get the following messages in the output window for source control.
Nice to see that it's actually doing a get latest (of any non writable files) now when the solution opens (not doing it under 3.1.9) but pretty disappointing that something as serious as this has slipped through.
[05-Aug-2006 22:52] Local file update for $/Development/Hook2005/HookPhoenix/App.config failed: System.InvalidCastException: Unable to cast object of type 'windowHandle' to type 'System.Windows.Forms.Form'.
at VaultClientPresentationLib.GUIClientInstance.PromptForOverwrite(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& merge, Boolean& applyToAll, Object dialogOwner)
at VaultClientOperationsLib.OverwritePrompt.DoPrompt(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& Merge)
at VaultClientOperationsLib.WorkingFolder.UpdateWorkingFile(VaultClientFile file, Int64 targetVersion, Int64 displayVersion, MergeType merge, VaultDateTime dt, Boolean makeBackups, OverwritePrompt PromptData)
at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, Boolean flat, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID, Boolean isRetry, Boolean isGetByDisplayVersion)
[05-Aug-2006 22:52] Local file update for $/Development/Hook2005/HookPhoenix/Properties/licenses.licx failed: System.InvalidCastException: Unable to cast object of type 'windowHandle' to type 'System.Windows.Forms.Form'.
at VaultClientPresentationLib.GUIClientInstance.PromptForOverwrite(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& merge, Boolean& applyToAll, Object dialogOwner)
at VaultClientOperationsLib.OverwritePrompt.DoPrompt(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& Merge)
at VaultClientOperationsLib.WorkingFolder.UpdateWorkingFile(VaultClientFile file, Int64 targetVersion, Int64 displayVersion, MergeType merge, VaultDateTime dt, Boolean makeBackups, OverwritePrompt PromptData)
at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, Boolean flat, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID, Boolean isRetry, Boolean isGetByDisplayVersion)
[05-Aug-2006 22:52] Fetched $/Development/Hook2005/HookPhoenix/BOM/Forms/frmPart.cs
[05-Aug-2006 22:52] Fetched $/Development/Hook2005/HookPhoenix/JobCosting/Forms/frmJob.cs
[05-Aug-2006 22:52] Fetched $/Development/Hook2005/HookPhoenix/Manufacturing/Forms/frmMRSDocSearch.cs
[05-Aug-2006 22:52] Fetched $/Development/Hook2005/HookPhoenix/Purchasing/Forms/frmPurchaseOrder.cs
[05-Aug-2006 22:52] Fetched $/Development/Hook2005/HookPhoenix/Purchasing/Forms/frmSupplierInvoice.cs
SCCGetFile Method: Exception of type 'VaultClientOperationsLib.GetLatestVersionFailedException' was thrown.
[05-Aug-2006 22:52] Refreshing folder tree
[05-Aug-2006 22:52] Folder tree refreshed
[05-Aug-2006 22:52] Refreshing folder tree
[05-Aug-2006 22:52] Folder tree refreshed
---- Operation completed successfully at time 22:52 ----
---- Operation started at time 22:52 ----
---- Operation completed successfully at time 22:52 ----
I've just upgraded from 3.1.9 to 3.5.0 of Vault. When I open a VS 2005 solution I have the setting to do a get latest when a solution is open. Also my vault settings specify to overwrite the modified working copy but prompt first.
If there are any files that are writable in the project I get the following messages in the output window for source control.
Nice to see that it's actually doing a get latest (of any non writable files) now when the solution opens (not doing it under 3.1.9) but pretty disappointing that something as serious as this has slipped through.
[05-Aug-2006 22:52] Local file update for $/Development/Hook2005/HookPhoenix/App.config failed: System.InvalidCastException: Unable to cast object of type 'windowHandle' to type 'System.Windows.Forms.Form'.
at VaultClientPresentationLib.GUIClientInstance.PromptForOverwrite(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& merge, Boolean& applyToAll, Object dialogOwner)
at VaultClientOperationsLib.OverwritePrompt.DoPrompt(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& Merge)
at VaultClientOperationsLib.WorkingFolder.UpdateWorkingFile(VaultClientFile file, Int64 targetVersion, Int64 displayVersion, MergeType merge, VaultDateTime dt, Boolean makeBackups, OverwritePrompt PromptData)
at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, Boolean flat, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID, Boolean isRetry, Boolean isGetByDisplayVersion)
[05-Aug-2006 22:52] Local file update for $/Development/Hook2005/HookPhoenix/Properties/licenses.licx failed: System.InvalidCastException: Unable to cast object of type 'windowHandle' to type 'System.Windows.Forms.Form'.
at VaultClientPresentationLib.GUIClientInstance.PromptForOverwrite(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& merge, Boolean& applyToAll, Object dialogOwner)
at VaultClientOperationsLib.OverwritePrompt.DoPrompt(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& Merge)
at VaultClientOperationsLib.WorkingFolder.UpdateWorkingFile(VaultClientFile file, Int64 targetVersion, Int64 displayVersion, MergeType merge, VaultDateTime dt, Boolean makeBackups, OverwritePrompt PromptData)
at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, Boolean flat, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID, Boolean isRetry, Boolean isGetByDisplayVersion)
[05-Aug-2006 22:52] Fetched $/Development/Hook2005/HookPhoenix/BOM/Forms/frmPart.cs
[05-Aug-2006 22:52] Fetched $/Development/Hook2005/HookPhoenix/JobCosting/Forms/frmJob.cs
[05-Aug-2006 22:52] Fetched $/Development/Hook2005/HookPhoenix/Manufacturing/Forms/frmMRSDocSearch.cs
[05-Aug-2006 22:52] Fetched $/Development/Hook2005/HookPhoenix/Purchasing/Forms/frmPurchaseOrder.cs
[05-Aug-2006 22:52] Fetched $/Development/Hook2005/HookPhoenix/Purchasing/Forms/frmSupplierInvoice.cs
SCCGetFile Method: Exception of type 'VaultClientOperationsLib.GetLatestVersionFailedException' was thrown.
[05-Aug-2006 22:52] Refreshing folder tree
[05-Aug-2006 22:52] Folder tree refreshed
[05-Aug-2006 22:52] Refreshing folder tree
[05-Aug-2006 22:52] Folder tree refreshed
---- Operation completed successfully at time 22:52 ----
---- Operation started at time 22:52 ----
---- Operation completed successfully at time 22:52 ----
We couldn't reproduce this behavior with the setting you described. There may be a problem with the solution or it could be network issue.
Can you do a get latest of the same file(s) with the Vault GUI Client?
Are other users experiencing the same type of error when they open a VS project?
Are there any corresponding errors in the Vault Server log (sgvault.log in %windir%\temp\sgvault)?
It might also be useful to enable IDE logging to see what errors are logged:
http://support.sourcegear.com/viewtopic.php?t=2898
Can you do a get latest of the same file(s) with the Vault GUI Client?
Are other users experiencing the same type of error when they open a VS project?
Are there any corresponding errors in the Vault Server log (sgvault.log in %windir%\temp\sgvault)?
It might also be useful to enable IDE logging to see what errors are logged:
http://support.sourcegear.com/viewtopic.php?t=2898
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Get Lastest on open still not working with version 3.5
Hi,
I am a collegue at Advantech Software.
We have our projects setup to do a Get Latest Version on open of Visual Studio 2005.
Below, I will past some text that will show you the output of the Get Latest from the open of the project, and then I did a manual Get Latest Version of the entire solution and there were still files to retrieve that the initial get latest did not pick up.
ON OPEN OF VS 2005
-------------------------
[08/08/2006 8:35:56 AM] Fetched $/Development/MyProject/frmMain.cs
[08/08/2006 8:35:57 AM] Fetched $/Development/MyProject/ZIPPA.csproj
[08/08/2006 8:35:57 AM] Fetched $/Development/MyProject/ClientProgram/frmFeedback.cs
[08/08/2006 8:35:57 AM] Fetched $/Development/MyProject/ClientProgram/frmAttendanceSheet.cs
[08/08/2006 8:35:57 AM] Fetched $/Development/MyProject/Properties/Resources.resx
[08/08/2006 8:35:57 AM] Fetched $/Development/MyProject/Stock/rptStockAdmin.cs
[08/08/2006 8:36:21 AM] Fetched $/Development/MyProjectComponent/ClientProgram/ClientProgramModule.cs
[08/08/2006 8:36:21 AM] Fetched $/Development/MyProjectComponent/ClientProgram/Feedback.cs
[08/08/2006 8:36:22 AM] Fetched $/Development/MyProjectComponent/ClientProgram/Attendance.cs
[08/08/2006 8:36:22 AM] Fetched $/Development/MyProjectWebService/App_Code/ClientProgramWS.cs
---- Operation started at time 8:36:23 AM ----
[08/08/2006 8:36:23 AM] Fetched $/Development/MyProject/ClientProgram/rptAttendanceSheet.resx
[08/08/2006 8:36:23 AM] Fetched $/Development/MyProject/ClientProgram/rptAttendanceSheet.cs
[08/08/2006 8:36:23 AM] Fetched $/Development/MyProject/ClientProgram/rptAttendanceSheet.Designer.cs
[08/08/2006 8:36:24 AM] Fetched $/Development/MyProject/Resources/CheckMark.png
[08/08/2006 8:36:24 AM] Fetched $/Development/MyProject/Resources/Sentis.gif
---- Operation completed successfully at time 8:36:30 AM ----
---- Operation started at time 8:36:30 AM ----
---- Operation completed successfully at time 8:36:30 AM ----
---- Operation started at time 8:37:54 AM ----
---- Operation completed successfully at time 8:37:54 AM ----
MANUAL GET LATEST AFTER PROJECT HAD LOADED
---------------------------------------------------------------
---- Operation started at time 8:40:40 AM ----
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/frmAttendanceSheet.resx
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/frmAttendee.Designer.cs
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/frmFeedback.Designer.cs
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/frmFeedback.resx
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/rptAppointment.resx
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/rptAppointment.Designer.cs
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/Properties/Resources.Designer.cs
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/Stock/rptStockAdmin.resx
---- Operation completed successfully at time 8:40:44 AM ----
---- Operation started at time 8:40:44 AM ----
---- Operation completed successfully at time 8:40:44 AM ----
As you can see, there are still files it didn't retrieve in the initial project open get latest version.
Many thanks if you could resolve this issue.
Regards,
Sam
I am a collegue at Advantech Software.
We have our projects setup to do a Get Latest Version on open of Visual Studio 2005.
Below, I will past some text that will show you the output of the Get Latest from the open of the project, and then I did a manual Get Latest Version of the entire solution and there were still files to retrieve that the initial get latest did not pick up.
ON OPEN OF VS 2005
-------------------------
[08/08/2006 8:35:56 AM] Fetched $/Development/MyProject/frmMain.cs
[08/08/2006 8:35:57 AM] Fetched $/Development/MyProject/ZIPPA.csproj
[08/08/2006 8:35:57 AM] Fetched $/Development/MyProject/ClientProgram/frmFeedback.cs
[08/08/2006 8:35:57 AM] Fetched $/Development/MyProject/ClientProgram/frmAttendanceSheet.cs
[08/08/2006 8:35:57 AM] Fetched $/Development/MyProject/Properties/Resources.resx
[08/08/2006 8:35:57 AM] Fetched $/Development/MyProject/Stock/rptStockAdmin.cs
[08/08/2006 8:36:21 AM] Fetched $/Development/MyProjectComponent/ClientProgram/ClientProgramModule.cs
[08/08/2006 8:36:21 AM] Fetched $/Development/MyProjectComponent/ClientProgram/Feedback.cs
[08/08/2006 8:36:22 AM] Fetched $/Development/MyProjectComponent/ClientProgram/Attendance.cs
[08/08/2006 8:36:22 AM] Fetched $/Development/MyProjectWebService/App_Code/ClientProgramWS.cs
---- Operation started at time 8:36:23 AM ----
[08/08/2006 8:36:23 AM] Fetched $/Development/MyProject/ClientProgram/rptAttendanceSheet.resx
[08/08/2006 8:36:23 AM] Fetched $/Development/MyProject/ClientProgram/rptAttendanceSheet.cs
[08/08/2006 8:36:23 AM] Fetched $/Development/MyProject/ClientProgram/rptAttendanceSheet.Designer.cs
[08/08/2006 8:36:24 AM] Fetched $/Development/MyProject/Resources/CheckMark.png
[08/08/2006 8:36:24 AM] Fetched $/Development/MyProject/Resources/Sentis.gif
---- Operation completed successfully at time 8:36:30 AM ----
---- Operation started at time 8:36:30 AM ----
---- Operation completed successfully at time 8:36:30 AM ----
---- Operation started at time 8:37:54 AM ----
---- Operation completed successfully at time 8:37:54 AM ----
MANUAL GET LATEST AFTER PROJECT HAD LOADED
---------------------------------------------------------------
---- Operation started at time 8:40:40 AM ----
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/frmAttendanceSheet.resx
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/frmAttendee.Designer.cs
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/frmFeedback.Designer.cs
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/frmFeedback.resx
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/rptAppointment.resx
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/ClientProgram/rptAppointment.Designer.cs
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/Properties/Resources.Designer.cs
[08/08/2006 8:40:41 AM] Fetched $/Development/MyProject/Stock/rptStockAdmin.resx
---- Operation completed successfully at time 8:40:44 AM ----
---- Operation started at time 8:40:44 AM ----
---- Operation completed successfully at time 8:40:44 AM ----
As you can see, there are still files it didn't retrieve in the initial project open get latest version.
Many thanks if you could resolve this issue.
Regards,
Sam
Get Lastest on open still not working with version 3.5
These exceptions only occur when you
1. VS2005 does a get latest on opening the solution (it also probably an issue with manually doing a get latest recursive when the solution is loaded).
2. you have writable files in your project somewhere ie app.config is not checked out of source gear but it's read only flag is not set
3. and your vault option is to overwrite files but prompt when overwriting and save a backup opf overwritten files.
I just want to make sure you're testing the scenario before I do any more testing for you.
If I don't have the overwrite option set ie I have merge later then no exceptions no matter how many files I have writable.
Your standard line of a problem with the solution or the network is not the case as the solution (and the network for that matter) behave fine under vault 3.1.9. Although 3.1.9 tells you it's getting latest but does nothing!
Also just to confirm that I was testing against 3.5.0 server and client and VS2005 no patches.
Thanks
Peter
1. VS2005 does a get latest on opening the solution (it also probably an issue with manually doing a get latest recursive when the solution is loaded).
2. you have writable files in your project somewhere ie app.config is not checked out of source gear but it's read only flag is not set
3. and your vault option is to overwrite files but prompt when overwriting and save a backup opf overwritten files.
I just want to make sure you're testing the scenario before I do any more testing for you.
If I don't have the overwrite option set ie I have merge later then no exceptions no matter how many files I have writable.
Your standard line of a problem with the solution or the network is not the case as the solution (and the network for that matter) behave fine under vault 3.1.9. Although 3.1.9 tells you it's getting latest but does nothing!
Also just to confirm that I was testing against 3.5.0 server and client and VS2005 no patches.
Thanks
Peter
Us too
Our developers are having the same issue as well. For some reason, some files being edited without being checked out. Especially the SUO file for the solution. We work exclusively in Visual Studio.
This is very annoying. Everything worked fine in 3.1.7. We are now on 3.5 with VS 2005.
If I have Modifed working copy set to Overwrite and the Prompt before overwriting locally modified files checked and get latest - we will get a dialog saying:
Your source control provider encountered an access error. Do you want to switch to working offline in disconnected mode?
If we change the choice to "do not overwrite/Merge later", we don't get the dialog.
Either way, in the output we'll get the following message:
[8/22/2006 8:16:04 AM] Local file update for $/SentryFunctions2005/WeightedAverageReductionAmountPlugin.cs failed: System.InvalidCastException: Unable to cast object of type 'windowHandle' to type 'System.Windows.Forms.Form'.
at VaultClientPresentationLib.GUIClientInstance.PromptForOverwrite(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& merge, Boolean& applyToAll, Object dialogOwner)
at VaultClientOperationsLib.OverwritePrompt.DoPrompt(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& Merge)
at VaultClientOperationsLib.WorkingFolder.UpdateWorkingFile(VaultClientFile file, Int64 targetVersion, Int64 displayVersion, MergeType merge, VaultDateTime dt, Boolean makeBackups, OverwritePrompt PromptData)
at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, Boolean flat, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID, Boolean isRetry, Boolean isGetByDisplayVersion)
This is very annoying. Everything worked fine in 3.1.7. We are now on 3.5 with VS 2005.
If I have Modifed working copy set to Overwrite and the Prompt before overwriting locally modified files checked and get latest - we will get a dialog saying:
Your source control provider encountered an access error. Do you want to switch to working offline in disconnected mode?
If we change the choice to "do not overwrite/Merge later", we don't get the dialog.
Either way, in the output we'll get the following message:
[8/22/2006 8:16:04 AM] Local file update for $/SentryFunctions2005/WeightedAverageReductionAmountPlugin.cs failed: System.InvalidCastException: Unable to cast object of type 'windowHandle' to type 'System.Windows.Forms.Form'.
at VaultClientPresentationLib.GUIClientInstance.PromptForOverwrite(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& merge, Boolean& applyToAll, Object dialogOwner)
at VaultClientOperationsLib.OverwritePrompt.DoPrompt(WorkingFolder wf, VaultClientFile file, String origFile, String newFile, MergeType& Merge)
at VaultClientOperationsLib.WorkingFolder.UpdateWorkingFile(VaultClientFile file, Int64 targetVersion, Int64 displayVersion, MergeType merge, VaultDateTime dt, Boolean makeBackups, OverwritePrompt PromptData)
at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, Boolean flat, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID, Boolean isRetry, Boolean isGetByDisplayVersion)
Will a fix be out in 3.5.1?
We can't upgrade to 3.5.0 if we won't be able to use the "Prompt to Overwrite" option. Will this be fixed in 3.5.1?
Hello,
We also encountered this problem with VS2005/Vault v3.5.0/and Get latest, and it went away once we installed v3.5.1. However, we're still encountering the access error when attempting to Add a new file or folder to a project and the VS2005 option for Prompt for automatic [exclusive] checkout is enabled.
Has anyone else encountered this? Is there a workaround/settings combo other than turning automatic checkouts off?
Thanks,
--jdavidi
We also encountered this problem with VS2005/Vault v3.5.0/and Get latest, and it went away once we installed v3.5.1. However, we're still encountering the access error when attempting to Add a new file or folder to a project and the VS2005 option for Prompt for automatic [exclusive] checkout is enabled.
Has anyone else encountered this? Is there a workaround/settings combo other than turning automatic checkouts off?
Thanks,
--jdavidi