When I do Get Latest Version from within Visual Studio on a complete solution or project I get the following error:
Unexpected error encountered.
Error: Unspecified error.
File: vsee\lib\path\cvapipath.cpp
Line number: 2459
When I do Get Latest Version on an individual source file, it works correctly.
When I do Get Latest Version on a project from within the VSS client, it also works correctly.
I got the following setup:
Visual Studio 2005 Team Edition for Developers.
Visual Sourcesafe 2005
C# solution containing services, web services and libraries.
Patrick

Unspecified error when doing Get Latest Version
Caleb T
I also tried the above solution with success.
We keep our solutions on the scc hive, I zipped the entire project directory and deleted it. Then went into scc and did a 'get latest version' to the same working directory, when running the solution now I can get the latest version problem-free.
Thanks.
Matt W.
ssandu
Hi dealogic,
> Maybe "c:\\Program Files" not being under the solution root was the cause of the problem
Since you mention you edited the *.vspscc file, the cause is likely the file not being under the project's root (not the solution, which uses *.vssscc hint files).
I've seen the "Error: Unspecified error. File: vsee\lib\path\cvapipath.cpp Line number: 2459" message appearing when one of the excluded files cannot be relativized to the project's folder (e.g. the excluded file was on a different drive from the project)
Can you tell us what type of project do you have and how did that file excluded (automatically, or did you excluded it when the project was uncontrolled, etc).
Thanks,
Alin
Sean B.
Had the same problem every time I added one specific project to the solution; found
"NUMBER_OF_EXCLUDED_FILES" = "1"
"EXCLUDED_FILE0" = "c:\\Program Files\\Common Files\\System\\ado\\msado15.dll"
had somehow got into the vsproj.vspscc file; when I changed it back to
"NUMBER_OF_EXCLUDED_FILES" = "0"
the problem went away. Maybe "c:\\Program Files" not being under the solution root was the cause of the problem
Sacblonde
I am working on a solution with five projects. I get the same error as Patrick when I am doing a get latest on the web project in the solution. All other projects is working fine. If I do a get latest in the sourcesafe application everything is working fine as well. When I try to unbind and rebind the samme error occurs.
Looking forward to hear from you.
Thanks,
Jacob.
ddrakonn
Hi Mark,
I suspect the current Profile you're using may have something to do with the command not being available. I'd try using the Tools/Import and Export Settings menu item to import settings from either General Developemnt or Visual C++ Development settings (save your current currnent windows configuration when prompted so you can restore it back later)
Alin
protools
Alin,
I was attempting to run my version of Visual Studio 2005 as a Debugger as your article explains (http://alinconstantin.homeip.net/webdocs/scc/UnspecifiedError.htm) and was unable to get it to work. I was able to get the Debug->Processes to show up as a menu item under Tools, but it is always disabled and I can't seem to change the settings properly to be able to select this option in Visual Studio 2005 (version 8.0.50727.42).
I am having the same issue as the others in this post. I can do a Get Latest Version of all projects except the Web Project. I cannot Get Latest Version from the Solution file either. If I Get Latest Version from either the Web Project or from the Solution file I get the following:
I did not find that any of my Project files had any Exceptions listed as dealogic posted.
Any help would be appreciated.
Mark Dahl
MichelleMcKelvey
See my previous posts.
I'll need a minidump when the exception is thrown, and a copy of the solution file, plus a good descriptions of the solution structure (where are the projects on disk, in the database, what are their bindings (see Change Source Control dialog), etc.
Also, if there is something particular for that website, that might help reproduce the problem (e.g. no files in the webroot, or has sub-folders that are virtual folders pointing to what location on disk, etc)
Thanks,
Alin
Kim9999
The code in cvapipath is generic (does string manipulation for file names), and is invoked from everywhere in the source control package. The only thing I can tell from the error is that for some reason we are trying to unrelativize two paths that cannot be unrelativized one to another (different protocols or 2 paths on different drives, instead of one full-path and one relative path)
Without more information I really can't tell what's wrong and what are the paths that cause the issue (see my other post for how to obtain a minidump)
Also, I'd need a description of the solution/web (e.g. what type of web filesystem/localdisk/etc, where is the web, where is the solution, does the web have virtual folders, etc.).
You can also try to narrow the issue further, by doing a Get one folder at a time from that web project, and you may find one that causes the problem, so we can focus further on what makes that folder different.
Thanks,
Alin
Bede
Actually, I went ahead and just re-created my solution from scratch (we keep projects under scc but solutions are kept local only) and that fixed the issue.
Before I did that, I tried completely removing just the web application from my local system (virtual folder, temp aspnet files, physical files on local disk) and re-adding it to my old solution via "Add Existing Web..." from the vss location. That did not fix my issue, I still got the same error from a Get on the web project.
So whatever the problem was, it seems re-creating the solution file fixed it. This problem occured as a result of a move from VS 2005 Beta2 on one PC to VS 2005 Team Developer on another PC, so it is likely there was something out of sync between the two.
Thanks,
Randy B
AltheaGayle
I am also getting this same error. I have a solution with 12 projects in it (1 ASPNET), and I get the error when trying to Get Latest on the web project itself. I can Get any file or folder listed under the web project, but when the IDE attempts to perform a Get on the web project itself it fails with the same cvapipath error. I have tried re-creating the web application itself in IIS, and it still doesn't work.
The web application itself is stored locally off of my scc root folder, with a virtual path / application in IIS pointed towards it. I manually checked paths in the solution file and they all seem to be correct.
What specifically can I send you to give you more detailed information
Thanks in advance,
Randy B
ICI
Software Developer
cpk
Hi,
I've checked the issue on VSTS(Visual Studio 2005 Team Suite) and I could not see the problem. Could you explain what do you mean by complete solution or project I will also see if this issue is specific to "Visual Studio 2005 Team Edition for Developers".
Thanks,
Daniel< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Chris Bernholt
I'd try narrowing down the issue.
I understand you get the error when doing GetLatest version on the solution.
Try doing GetLatestVersion one by one for each project, see if you can reduce it to one project. Then try on groups of files/folders in that project, see if that could be narrowed down even further.
In one report of a similar exception, Unbinding/Rebinding the solution seemed to help. In other reports (VC project with folder set to SCCFiles=False), toggleing the SccFiles property of the folder was the workaround.
What could also help is to collect a minidump like described in http://www.alinconstantin.net/webdocs/scc/UnspecifiedError.htm
and send it to us for analysis...
Thanks,
Alin
norman_timo
I'm going to go and try the minidump you suggest, but i was wondering if there has been any light shed on a solution to this
Bhavish_K
Patrick,
After following the instructions that Alin offered in his article and sending him a minidump, Alin suggested some fixes for my problem that fixed the issue.
Here are some things that we changed that fixed things:
The only sad thing about the above is every developer we add in, the defaults for SourceSafe uses these settings that cause this problem and we have to follow steps 2, 4 and 5 for every developer added to our project. I wish SourceSafe would somehow forget the original setup and use the existing setup for most machines.
I don't know if this will be helpful for anyone or not, but since Patrick asked for some feedback, I figured I would pass some along.
Mark Dahl