Get latest issue with 3.5 and VS2005

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
advantech
Posts: 5
Joined: Thu Jul 13, 2006 4:25 pm

Get latest issue with 3.5 and VS2005

Post by advantech » Sat Aug 05, 2006 6:59 am

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 ----

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Aug 07, 2006 7:25 am

Thanks for the report. We'll see if we can reproduce this here.
Linda Bauer
SourceGear
Technical Support Manager

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Aug 07, 2006 9:58 am

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
Linda Bauer
SourceGear
Technical Support Manager

advantech
Posts: 5
Joined: Thu Jul 13, 2006 4:25 pm

Get Lastest on open still not working with version 3.5

Post by advantech » Mon Aug 07, 2006 4:56 pm

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

advantech
Posts: 5
Joined: Thu Jul 13, 2006 4:25 pm

Get Lastest on open still not working with version 3.5

Post by advantech » Mon Aug 07, 2006 6:41 pm

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

jdcaram
Posts: 1
Joined: Thu Oct 14, 2004 6:56 am

Us too

Post by jdcaram » Tue Aug 22, 2006 6:35 am

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)

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Tue Aug 22, 2006 9:14 am

There seems to be an issue with the Prompt for Overwrite dialog called from the Vault VS.Net IDE client.

The only work-around at this time is to turn off the option from within Visual Studio to prompt for over-write.
Jeff Clausius
SourceGear

jmarsch
Posts: 26
Joined: Mon Mar 01, 2004 11:45 am

Will a fix be out in 3.5.1?

Post by jmarsch » Tue Aug 22, 2006 1:00 pm

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?

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Tue Aug 22, 2006 2:18 pm

Yes, we have tentatively set to address this in Vault 3.5.1.
Jeff Clausius
SourceGear

jmarsch
Posts: 26
Joined: Mon Mar 01, 2004 11:45 am

Post by jmarsch » Tue Aug 22, 2006 4:33 pm

Thanks

gmagana
Posts: 145
Joined: Wed Feb 18, 2004 10:51 am
Location: Santa Ana, CA, USA

Post by gmagana » Tue Aug 22, 2006 8:34 pm

You may want to try doing a right click on solution and doing get latest from there... It's worked for me for a long time...
gabriel magana-gonzalez

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Fri Sep 15, 2006 8:44 am

Note - This enhancement is included in the current Vault 3.5.1 release. It was released to address a problem with Date Time synchronization and the Visual Studio Dialog problem mentioned in this thread.
Jeff Clausius
SourceGear

jdavidi
Posts: 48
Joined: Thu Jul 06, 2006 1:29 pm

Post by jdavidi » Thu Nov 09, 2006 11:37 am

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

Locked