Re: Open solution from Source Control problem

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hello,

I will describe all my moves step by step:

1. Initial state: I have a solution with several projects in SorceSafe
database.
2. I run VSS client and get the latest version of the solution to my
computer local folder
3. I open .sln file store in my computer local folder using Visual Studio
2005.
4. Visual Studio shows strings like “Loading project file
d:\projects\Project1.vbproj”, “Loading project file
d:\projects\Project2.vbproj” and so on.
5. After some time this process reaches loading of some project N (“Loading
project file d:\projects\ProjectN.vbproj”). And right after that, VS shows
message box “The file 'All.sln' needs to be checked out before it can be
edited. The file was not checked out automatically because you have disabled
automatic check out when files are edited in the Source Control options page.
“Ok”, “Help””. The project N is asways the same.
6. After that I open VSS client and check out all.sln file manually.
7. After that I press “Ok” button in message box and visual studio opens the
solution normally.
8. After that I check in solution file from VS interface.
9. VSS history for all.sln file shows that there is no changes in the file.

I can attach to Visual Studio 2005 process using another VS2005. I have no
Debug/Break menu item, but I can brake it using Debug/Brake All. I can not
make dump because I have no Debug/SaveDumpAs menu item. There can I find this
“SaveDumpAs”?



"Alin Constantin [MSFT]" wrote:

Hi Evgeny,

As far as I can see in the code, that message is displayed when there was a
failure to checkout the files silently, and in-memory edit is not allowed.
I can only suggest to set OnEdit=Prompt, and check "Allow in memory edit",
and hope that a CheckoutOnEdit dialog will appear.

When the solution/project calls source control to edit the file, it has the
chance to override these settings though.
I'll need a minidump obtained when the message is displayed to see what
parameters were passed in to QueryEditFiles().
You can capture one by attaching another VisualStudio as debugger when the
error message is up, use Debug/Break and Debug/SaveDumpAs commands.

You say that if you manually checkout the solution file (before opening, I
guess), the message does not appear.
Does anything change in the solution file after open if you save it?

I'm also a bit unclear what you're doing. The title of the thread says "open
from source control".
However, the message content says "When I try to open a local copy of
solution file".
Are you opening from source control, or opening a controlled solution from
disk?

You also say that "the solution can not be opened until i check out .sln
file".
The message displayed by SourceControl is just a warning that edit of the
file was not allowed.
Do you get any other error messages from VisualStudio why the solution open
was not allowed?

Thanks,
--
Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.


.


Quantcast