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.
Related
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.
Visual Studio 2013 Professional just started throwing this error on me, in the middle of switching solutions. A full reboot of the computer didn't resolve it.
Here's the error I see when I try loading a solution:
Now, when I go look at the log file it suggests, I see this:
SetSite failed for package [JavaScriptWebExtensionsPackage]
End package load [JavaScriptWebExtensionsPackage]
If I click "Yes" to continuing to show the message, and try loading up a file in the solution -- I get this message:
Telling me that No EditorOptionDefinition export found for the given option name: Tabs/ConvertTabsToSpaces - Parameter name: optionId.
I really do not know what to make of this. I didn't do anything except check in some files to TFS (which I do dozens of times a day, a week, a year). The only thing I ever did differently that I never did before was attempt to view Source>Annotations on a file (I've never did that in my life with TFS/VS) about 10 minutes prior - but that worked fine and was just ducky.
So - any ideas why I'm getting this message - and how to resolve it without a fullblown re-install?
So -- after posting this and adding that last screenshot (the No EditorOptionDefinition export... business) -- I decided to google on that phrase as well (the other key phrases brought me nothing).
It brought me to this page:
No EditorOptionDefinition Export Found Error
Which actually fixed the problem.
In short:
Close Visual Studio
Open the %UserProfile%\AppData\Local\Microsoft\VisualStudio\<version>\ folder
Rename or delete the ComponentModelCache folder
Restart Visual Studio.
I had the same problem, All i did was went to Control Panel and ran a Repair on VS 2013. Waited for it to complete and restart my computer and it worked.
In my case above solution not work out but when I tried to delete everything from
%LocalAppData%\Microsoft\VisualStudio\14.0\
from above location then I restarted visual studio 2015 then it works fine.
Hope anyone having this issue may resolve deleting everything from 14.0 directory
thank you
I had the same experience. Deleting %LocalAppData%\Microsoft\VisualStudio\14.0\ worked fine. I could not delete for permission reasons so had to delete from command line all files in 14.0.
I am opening files from a server ASP.net and the VB codebehind files, and my visual studio is not working correctly, Intellisense is dead and if i right click the "Go to defenition" option is disabled. These files are not part of a solution.
This is strange though because it was working properly yesterday. If I create a new project the intellisense works great, yet opening this single file it fails.
I have tried to re enable intellisense by resetting visual studio, I tried editing the text editor settings so that Auto list members and Parameter information are both checked. I even tried installing ReSharper and nothing worked. I have rebooted twice and even tried copying the file to a local drive to work on yet nothing.
Does anyone know why this is happening and what I could do to solve the problem? Im working on a rather complex problem and intellisense would make it a lot easier.
I managed to fix this problem which manifested itself after my ReSharper trial expired.
Steps to fix are:
Tools/Import and Export Settings
Reset all settings
Back up your config
Select your environment settings and finish
Intellisense started working again straight away.
For me simply hitting Ctrl+Alt+Space to re-enable Autocompletion fixed it.
I had the same problem. It only affected one of my solutions. Others seemed fine.
To correct it I deleted the solution's user options file (.suo).
When I opened the solution again, intellisense was working.
For the benefit of searchers, Nicks suggestion is good, but if you don't want to reset all your settings, you could follow the recommendation in this post.
It states - "go to "Tools | Options | Text Editor | C# | General and check the "Auto list members" and "Parameter information" checkboxes"
I should first note that upgrading my RAM from 4 to 16GB seems to have made this issue go away.
Here's the steps I go through:
If only one file/window appears to be affected, close/reopen that file. If that doesn't work, try below.
In Visual Studio:
Click Tools->Options->Text Editor->All Languages->General
Uncheck "Auto list members"
Uncheck "Parameter information"
Check "Auto list members" (yes, the one you just unchecked)
Check "Parameter information" (again, the one you just unchecked)
Click OK
If this doesn't work, here's a few more steps to try:
Close all VS documents and reopen
If still not working, close/reopen solution
If still not working, restart VS.
For C++ projects:
MSDN has a few things to try: MSDN suggestions
The corrupt .ncb file seems a likely culprit.
From MSDN:
Close the solution.
Delete the .ncb file.
Reopen the solution. (This creates a new .ncb file.)
Sometimes, it could be because of different extension style that you are using for the files.
In my case Intellisense is working in all the files except for a file in a different project of the same solution.
When I have changed the extension of the file to cxx from cpp,it started working.
The includes and other files in the solution are of extension .cxx or .txx.
Thank you
Save your solution. Closing the VS2010 instance for this solution and re-oprning worked for me.
Here I assume that Intellisense was working OK but stopped for some unknown reason without changing any default settings.
Prabhdeep
After uninstalling ReSharper, the squigglies that show up underneath a syntax error stopped showing up in the code editor.
This blog post helped me fix the issue.
Try this:
Close any open instances of visual studio, delete the folder 10.0 inside `C:\Users[username]\AppData\Roaming\Microsoft\VisualStudio\' and restart the visual studio. Issue will be fixed.
In my case, none of the above worked (although I discovered that sometimes the *.suo file is the trouble maker - in those cases deleting it helps).
I fixed it successfully the following way: Let's assume your solution has the name MySolution. Do the following:
Reset the settings (as described here). Close Visual Studio 2012.
Locate the file MySolution.sln.DotSettings (it is in the same folder as your MySolution.sln file)
Rename or delete it (for example rename it to XMySolution.sln.DotSettingsX so VS won't read it)
Open your solution by double-clicking on the MySolution.sln file
And afterwards Intellisense was working again just fine. I assume the file MySolution.sln.DotSettings got corrupted.
Note: The file MySolution.sln.DotSettings was created and checked in to TFS by a team colleague who had installed ReSharper. The issue occurred on a different PC without ReSharper where the same project was opened.
For me, this was related to an incorrect xaml file build action in an Azure WorkerRole project (bizarre, though it may seem!). Please see my entry in this post if you want to know more:
C# VS2010 Entering break mode failed
The fix for the error in the above thread also resulted in the intellisense starting to work again.
I fixed this problem by removing Sybase Power Designer VS extension.
You can try to disable other extensions.
Exactly the same issue, though would appear only on certain projects (even within a single solution).
Removing the *.*proj.user file (e.g. *.csproj.user) for the projects in question properly reset the missing features ("Go To Definition", "Organize Usings", Intellisense on certain types, etc).
In our case, I suspect this happens sometimes when we switch branches with an SCM that uses a single working directory (like git). If setup properly, it wouldn't track *.user* files but that means that if there are incompatible changes in it across different branches, you need to regenerate it.
So of course the "sometimes" would depend on the current branch and the next branch.
Unfortunately I don't see a very good solution if that's the case. Sometimes you really want to keep the user settings across branches if they're compatible, sometimes you want to regenerate them unconditionally. Ideally, you might even want to only change parts of them when switching, while keeping other parts.
If you never need to keep them and are fine with regenerating them every time, then you can configure your SCM to always remove these files while switching branches (e.g. using hooks for git). This is a pretty naive solution however, doing it more universally correctly would require a smarter system (aware of the semantics behind the .user files and capable of capturing/prompting user intent when needed).
save, close and reopen the source file you are working on. This works every time for me.
Try to add the statement:
<%# Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="IP_Updater.Default" %>
...at beginning of your page. The above example is applied for page Default.aspx written in VB.NET.
This is the problem related to Microsoft MSDN , your MSDN might be getting some problem. The solutions to this is uninstall MSDN and then re-install . before going for this make sure that you system is free from virus attack.
Hope that after doing , the Microsoft Intellisense will start running
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
This project was working fine, then I restarted my computer to install a new GPU, and now it is producing the following error when I try to run it:
Error while trying to run project: Unable to start program:
"E:\Workspace\...\....exe"
Cannot find the file specified.
I have confirmed that the file mentioned does exist at the path specified by the error message.
I have tried to "Clean Solution" and "Rebuild Solution".
Navigating to the executable file manually and running it works. The error above is produced when I press the "Run" button in VS2010.
Does anyone know why this might be happening?
I had this issue on VS2008: I removed the .suo; .ncb; and user project file, then restarted the solution and it fixed the problem for me.
Using the repair tool in the VS Management fixed everything.
(I.e. right click Visual Studio 2010 and select Change/Remove from the Uninstall Programs tool in the Windows Control Panel, and click Repair in the Visual Studio Management window when it loads.)
The only way that I was able to get over this (reinstall wasn't an option) was to set the project properties->web->start action->"don't open a page. wait for a request from an external application."
BTW, I think that at some point this started because of a mod that I made to machine.config. :) And no, I don't remember what it was. It does seem to be this very apocalyptic bug where once you get it never goes away.
So if you found this page from Google, you should know that you are doomed. :)
For me it was the virus scanner not liking the fact I have in my exe filename multiple periods.
i.e
project.class.console.exe <- won't run
console.exe <- will run
Hope it helps.
I found a related thread:
Debugging Visual Studio 2010/IE 8 - Unable to start program - Element not found.
Here the best suggested answer was:
Tools > Internet Options > Advanced Under the Browsing Section
then uncheck the
"Disable Script Debugging (Internet Explorer)
I personally have this issue in Visual 2012 with x64 applications when I check the option "Managed C++ Compatibility Mode" of Debugging->General options of Tools->Options menu.
=> Unchecking this option fixes the problem.
For me, it was... the AntiVirus! Kaspersky Endpoint security 10. It seems that the frequent compilations and the changing of the exe, caused it to block the file.
I encountered this error when "" was added by mistake to my command line arguments when altering properties for "All Configurations". Removing them from RightClickProject->Properties->Configuration Properties->Debugging->Command Arguments allowed it to run in the debugger again.
I think that VS is no longer able to resolve the path for some reason.
You can try going to the "Project Properties" dialog, select the "Debug" tab, select "Start external program" on the "Start Action" group and type the full path to the executable.
Reset the diagnostics and the static analysis under the, for example, Properties -> FORTRAN -> diagnostics. Particular be careful the 'Level of Static Security Analysis' and set it none. Good luck!
I had the same problem.
The cause for me was that the Command option in Configuration Properties | Debugging had been reset to its default value.
I encountered a similar problem. And I found the solution to be totally unrelated to the error. The trick was renaming the assembly name. Solution: VS 2013 -> Project properties -> Application tab -> AssemblyName property changed to new name < 25 chars
I had similar problem while using Silverlight web project...
I got resolved issue by setting startup page (In silverlight .aspx is the startup page).
In project browser right click your startup page and set it.!
see here my screen shot
I just re-ran into the same issue: Console App, Visual Studio 2013, 64 bit OS. The project's settings was set to "Any CPU", I created a new configuration for x86 and VS was happy.
In Your Solution Explorer, Right Click your solution (.sln), choose "Configuration Manager"
Active Solution Platform: If it's saying "Any CPU", click the drop down arrow and choose ""
In the "Type or select the new platform", enter "x86"
Now, make sure that the "Active solution platform" is set to x86
Run (F5)
I've tried deleting .suo; .ncb; .sdf; rebuild etc. Nothing helped.
The message was:
Unable to start program
'C:\Users\some user\Downloads\project name\.\Debug\fil_name.exe'
The system cannot find the file specified.
The problem was mismatched file name and wrong path to that file.
1. So went to Project->Properties->Linker->General-> and on the right pane in 'Output file' changed the name from 'fil_name.exe' to 'file_name.exe'
The file_name.exe was in deeper folder like -> \Debug\crv.
2. Also did Project->Properties->Configuration Properties-> and on the right pane in 'Output Directory' edited '.\Debug\' to '.\Debug\crv'
in my case we solved from project debugging settings like
Deleting and restoring the entire solution from the repository resolved the issue for me. I didn't find this solution listed in any of the other answers, so thought it might help someone.
I had a similar problem, but none of the solutions listed here helped. My problem was that my solution has multiple projects and the wrong one was selected as the StartUp Project, once I changed that, it worked.
In case of Windows applications, the error is solved changing the running project properties.
Right click on current running project, select Properties
Debug -> Check Enable unmanaged code debugging and press save button in menu.
This configuration is not saved to [CurrentProject].csproj (or [CurrentProject].vbproj).
It is saved to:
[CurrentProject].csproj.user (or [CurrentProject].vbproj.user)
If you use a code repository, usually this file is not saved undo version control.
I am only posting this because I had a specific issue with the command line arguments I was passing in. Being inexperienced with the command line I was using "<" and ">" in my arguments and it was redirecting the file on me. Hope this helps someone.
I had similar trouble in Visual Studio 2019.
I need rebuilding old project to new framework.
I change framework with 3.5 to 4.7 it very simple, but application not started.
I had try change project and solution settings long time and many position it is not helped me.
Solution will be simle:
Open config file to text edit.
And delete and section <system.web>
Run project.
From the top menu "Build" -> "Rebuild Solution", the .exe file was somehow deleted or corrupted, the "Rebuild Solution will create a new one!