we have recently updated VS/TFS within our team and everytime I open VS now, following warning message appears:
"There appears to be a discrepancy between the solution's source
control information about some project(s) and the information in the
project file(s)"
When I do check-in, I get a change in .sln file for
SccTeamFoundationServer = http://czphaptfs01:8080/tfs
instead of
SccTeamFoundationServer = http://czphaptfs01:8080/tfs/defaultcollection.
I've tried to fix the file manully via Notepad but again, everytime I try to check-in something, the .sln is overwritten back. That leads me to a conclusion there might be possible something wrong set in VS, however when I double check TFS Team Connection in Manager Connection, everything appears fine.
Any help would be greatly appreciated.
Thanks in advance.
I've resolved the issue by reconnecting to the project in Team Explorer.
Related
I'm running Visual Studio 2017 on Windows 11 Pro. I have a large-ish Winforms project. Recently I started having trouble adding new files to the project.
I'll try to add a new class by right-clicking in Solution Explorer. The Add New Item form pops up, I'll enter the class name, click Add and I'll get an error pop up that just says
"The system cannot find message text for message number 0x%1 in the message file for %2."
The new file does not get added. I close the Add New Item form. Now my Project file is empty. Something happened during the error to delete the contents of my project file. I'm using Git and my client shows that everything was deleted so I just undo the changes in the project file so I haven't lost anything yet.
I'll try again and usually I can add a file. Then at some point I'll go through this again. I've rebooted my machine many times.
Anyone have any ideas what is happening?
The same error message also frequently appears in my VS 2019. Generally it happened during check in dan publishing proess. The workaround I did was to restart the application (VS 2019), and magicaly it solved my problem. But it doesn't prevent the issue not to happen again in the future.
When I open my worked solution (after merge from other branch) VS2013 shows error message "unspecified error" and I cannot close the window (the error's dialog jumps each time when I close it).
VS2012 opens the solution without error messages.
I suspect issue related to TFS configuration.
How can I found actual reason of the error?
I have searched a lot about its root cause but couldn't found any concrete information.
For me,
Deleting the solution's .suo file.
resolve this problem.
I still don't understand the actual reason for this error, but I found a workaround.
According to "Change source control" window (VS) solution file (.sln) not connected to TFS
When I connected the solution to TFS in VS2012 (with the help of this link), VS2013 opened the solution too without error message.
Found a solution at this address:
Go at File -> Source Control -> Advanced -> Change Source Control
Select your projects and unbind them
Rebind them.
The problem should be solved.
I have removed and recreated new workspace for the project and its works for me
This always works for me 100% of the time.
Make sure your solution is closed.
Open your solution.
As QUICKLY
AS YOU CAN press Ctrl-Shift-B.
Your solution will build and the error message will disappear. When it reappears do the same thing again.
May be URL of TFS server is mentioned wrongly in solution file.
I get this error message in a Reporting Services solution in Visual Studio 2010 [we're using TFS for source control]:
There appears to be a discrepancy between the solution's source
control information about some project(s) and the information in the
project file(s).
To resolve this discrepancy it will be necessary to check out the
project file(s) and update them. If the check out fails, however, and
the solution is closed without saving, you will see this warning again
the next time you open the solution.
Only some projects get checked out but others seem OK. So here is what I tried:
I tried to compare what might be different between the project
files that work and don't work but nothing catches my eye.
I looked around and tried a
number of proposed solutions like "adding a file, checking in and then removing
it and checking in". No luck.
I tried to look for "Scc" tags in project files
but I don't see any in there. I also don't see them in projects that
work fine. Looking at my solution the Scc entries look reasonable.
Help!! What am I missing?
Using Visual Studio you can solve this problem by unbinding and binding the solution and/or projects. Try this:
Open the problem solution in VS (did this in VS2013 just now)
Undo all pending changes to all the projects in that solution and the solution itself
Go to File -> Source Control -> Advanced -> Change Source Control
Select the problem projects and click "Unbind"
Click OK and close the window (THIS IS IMPORTANT - if you don't click OK VS doesn't update the solution properly)
Go to File -> Source Control -> Advanced -> Change Source Control
Select all the projects you unbound in #4 and click "Bind"
Click OK and close the window
Check In Your Changes
Close the solution and open it back up and everything should be fine now
Experienced the same problem in VS2015.
I found this workaround worked for me:
Change < Scc* > tag values to "SAK" (Should already know) in the project files:
<SccProjectName>SAK</SccProjectName>
<SccProvider>SAK</SccProvider>
<SccAuxPath>SAK</SccAuxPath>
<SccLocalPath>SAK</SccLocalPath>
https://connect.microsoft.com/VisualStudio/feedback/details/616751/discrepancy-between-the-solutions-source-control-information-about-some-project-s-and-the-information-in-the-project-file-s
Workaround #3
There was 1 person on our team who was doing the conversion to TFS from VSS who didn't have any errors. He never checked in his solution so we never saw it until now. I looked through his solution file and there are differences. I found the following differences for each project in "GlobalSection(TeamFoundationVersionControl) = preSolution":
Our NETReports.sln in TFS (the file that gave the error above):
SccProjectUniqueName7 = EllinReports\\DiagnosticReports\\DiagnosticReports.rptproj
SccProjectName7 = EllinReports/DiagnosticReports
SccLocalPath7 = EllinReports\\DiagnosticReports
His NETReports.sln (the file that DOESN'T give the error above):
SccProjectUniqueName7 = Reports\\DiagnosticReports\\DiagnosticReports.rptproj
SccProjectTopLevelParentUniqueName7 = NETReports.sln
SccProjectName7 = Reports/DiagnosticReports
SccAuxPath7 = http://<server>:8081/tfs/dev
SccLocalPath7 = Reports\\DiagnosticReports
SccProvider7 = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
I guess it all makes sense now. We were all missing the SccAuxPathXXX, SccProviderXXX and SccProjectTopLevelParentUniqueNameXXX. Having them made the difference.
My team uses VS 2010 Ultimate with TFS and we recently upgraded to Resharper 6. Now every time I close my solution, I get this Resharper error dialog:
No one else here seems to get this but me. Any idea what's going on?
#Mrchief, thanks for your help! I do have permissions to edit the file. Someone else had added it when he installed R# 6 on his pc. His R# options were set to save the cache in the solution folder, as were mine, so here's what I ended up doing:
I opened the solution, checked out the file directly
I closed the solution with the file checked out: no error!
I checked in the file with the solution closed.
With the solution still closed, I set my Resharper options to save my cache in my system TEMP folder
Reopened the solution; now when I close, no error!
It seems that for some reason, you do not have write access to the path. Either it's readonly or is restricted by your administrator.
You can try to save the files in your solution folder instead:
Ok I had same problem where I was moving to different TFS 2010 servers
0) Move the temp file from Solution to temp dir as mentioned above
1) Add the xxxxxx.ReSharper.user to the solution manually
2) remove the readonly attribute from the file xxxxxx.ReSharper.user.
I did step 2 when I went to exit and got the "Error saving" prompt then hit "try again" and all is fine now.
TFS/Source safe leave the file attributes in a mess for Reshaper 6.0
I am using VS 2010 and recently I moved some files around and changed paths etc.
The solution still compiles correctly and all files are able to be loaded/compiled without error however just about every time I go to compile after a change it gives me the save as dialog and asks me to save one of the projects, if I try to give it a new name or something the dialog does not exist nothing I do can make it exit apart from pressing cancel.
If I do a build straight after cancelling it works fine and I'm not presented with the save as dialog. I have verified that the project file is not read only.
Any ideas as to whats going on here.
The solution is stored in TFS 2008
You need to do 2 things
1- remove the read-only tick from the project folder
2- when a save-as window prompts at build, just overwrite the project
next time you build, the window won't pop up
You need to run VS as administrator. (right click on VS Icon- Run as administrator)
I solved the issue. When I try to save as this time it gives the error that file is being used by another process. Google Sync prevents to save so it opens save as dialog.
You should put your project under a folder not sync while working.
Are the bindings in TFS set up correctly with the new location? TFS will mark files as read only unless they get checked in. It might have been marked as such before you moved everything around, and now, isn't being checked out properly.
Also, try closing sync. files tools like google backup and sync.