I am using Windows 10 on my machine. i recently installed VS2010 + Service pack1 for VS but when I open the TFS window, the following screen with exception messages appears:
And when i click on the "Connect to Team Foundation Server" as below;
it gives me below error:
And there is no file with the name of ActivityLog.xml at the following link:
C:\Users\myUser\AppData\Roaming\Microsoft\VisualStudio\10.0
Can someone point out where is the mistake or how to fix this issue? Thanks
if it was working earlier then try clearing the cache from %LocalAppData%\Microsoft\Team Foundation\3.0\Cache
if it wasn't working earlier check if you have installed TFS 2010 SP1. Then clear the cache and try connecting it.
Firstly, you need to run Devenv /log command to log all activity to the log file for troubleshooting.
Secondly, the error message you have indicates that there is something wrong with Team Explorer. So in order to fix this issue, you need to repair your VS2010 to have team explorer repaired to.
Related
One of my developers is receiving the following message from Visual Studio 2017 Enterprise when trying to connect to one of our DevOps projects and we've tried everything we can think of and everything we've found from searching Stack Overflow and the internet in general just hasn't worked.
Here's the error from Visual Studio:
We could not add the account
The browser based authentication dialog failed to complete. Reason:
The server understood the request, but is refusing to fulfill it.
What we've tried
Deleting the folders Team Foundation, VisualStudio, VisualStudio Services, VSCommon, and vshub located in %userprofile%\AppData\Local\Microsoft
Deleting everything from Windows Credential Manager.
Authenticating via browser (success).
Repository is hosted on dev.azure.com.
From what I understand, this is an HTTP 403 error which means the user successfully authenticated and that they just don't have permissions to view the requested resource. Permissions in DevOps are identical to other users that don't have any issues. We have 1 group for the developers and if you're in that group, you have all necessary permissions so I'm confident their permissions are identical to the other devs that aren't having any issues.
I think I understand what this error means for websites in general, however I seem to be at a loss for what either Visual Studio or Azure DevOps wants us to do specifically to alleviate this error.
The browser based authentication dialog failed to complete.
Once it was a known issue in old VS2015 and VS2017, but I can't reproduce it on my latest VS2017 15.9.23. Here're some tips you can follow to resolve that issue:
1.Update VS2017 to latest 15.9.23 version.
2.Navigate to VS installation path C:\Program Files (x86)\Microsoft Visual Studio\2017\VsEdition\Common7\IDE and run devenv.exe /resetsettings and devenv.exe /resetuserdata to reset the VS settings and userdata. From Joyce Lin.
3.Check your registry settings and empty the China endpoint if it exists. Check this one. Now try to log in the VS...
4.If the issue persists after #3, you can:
Open Visual Studio
Click Help > Send Feedback > Report a problem
An instance of Visual Studio Feedback will open
Attempt to sign in using your MS account
If sign in is successful, check if you are signed into Visual Studio
Hint from Nathan Timblin.
Hope all above helps :)
I'm getting the following error when opening VS 2017 on Windows 7 64-bit:
Package management initialization failed: Access Denied.
You can get more information by examining the file:
C:\Users\<username>\AppData\Roaming\Microsoft\VisualStudio\15.<version>\ActivityLog.xml
It all started after I added my solution to SVN. I had no problems until I tried to add a file and got the following error:
Value does not fall within the expected range
I followed the steps mentioned in this answer and did a 'devenv /setup', after that I started getting the Package management initialization failed: Access Denied. error when opening VS. Now Visual Studio doesn't even start.
Has anyone else experienced this problem and resolved it?
Edit:
I tried starting as an administrator and it worked. But otherwise it doesn't.
It turns out that this is a bug, that hasn't yet been resolved. This error also occurs when starting Visual Studio after an update.
But there is a workaround from this thread that worked for me,
Delete the privateregistry.bin file from the following folder:
C:\users\%username%\Appdata\Local\Microsoft\VisualStudio\15.0_<version id>\
This is however a temporary fix and resets the user's preferences. That's why it worked when I started it as an administrator, since the problem is user specific.
Update
This bug is supposedly fixed in the latest versions of Visual Studio. But for the bug fix to work, the old privateregistry.bin file still needs to be deleted.
#Xpleria, the answer works fine. To open the AppData folder, you can type:
%AppData%
directly in the Address bar.
https://support.pointlogic.com/faq/troubleshooting/accessing-the-appdata-folder
I had this issue after installing SSDT for VS 2017 in a new vs instance.
So it's like I have two visual studio in my machine.
To fix that, I uninstalled the SSDT package, restart my machine and reinstall it on the initial installed visual studio instance.
I had the same problem and when I looked at
C:\Users\UserName\AppData\Local\Microsoft\VisualStudio
I noticed that I had miltiple versions of visual studio meaning the current update might not have been successfull, as I was not able to delete the file that #Neil Patro says, I simply deleted the entire updates and all was ok.
I guess adding this as an answer might help.
Happened to me with an existing VS instance running, where I disabled an extension (VsChromium). Closing all VS instances solved the error and VS starts normally.
Env: VS 2019 Pro, Win 10 x64, running as current user.
I'm running Visual Studio 2017, version 15.0.0+26228.9
When I'm trying to create a new project via File > New > Project... in Visual Studio 2017, I'm receiving the following error message and the project is not created:
Access denied (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Don't mind the german message text in the screenshot:
This happens for every project template I use (e.g. C# WPF, VB WPF, C# Console App...).
If I try to create a project via the quick search box on the starting page of visual studio, VS just crashes instantly with no exception message at all:
Has anybody else ran into this issue and might know how to fix it?
I had the same error.
I solved it by following the procedure :
Shutdown all instances of Visual Studio
Delete %LocalAppData%\Microsoft\VisualStudio\15.0_f4938f75\privateregistry.bin file (the ID after 15.0_ may be different per machines)
Start VS as normal user
all credit for this should go to https://developercommunity.visualstudio.com/content/problem/31188/access-denied-error-1.html
Ok, I fixed it.
Long story short, the reason for the problem was an incomplete and/or corrupted setup.
But it was a rather bumpy road to the solution, including several un-installations and re-installations until I eventually figured out why the setup was indeed faulty.
Sometimes I got an exception during the installation, other times it finished just fine, but the HRESULT-error persisted when I tried to create a new project.
I my special case, this was caused by the corporate firewall, that blocked some of the setup packets from being downloaded by the web installer. I solved the issue by connecting to an open WiFi, that's not filtered by the firewall.
As I'm working with a standard user, UAC kicks in when I start any installation routine. When I first started the setup via UAC and connected to the free WiFi, it wasn't able to find the packet servers.
It took me a minute to realize that the admin user I used for UAC had his own internet proxy settings, that wouldn't work with the open WiFi.
After I logged on as administrator, disabled the proxy and logged on as my main user again, I ran the setup again - and it failed again with a bunch of "incomplete workload" messages. As frustrated as I was at this point, I simply ran it again via the "Change" button without even closing the webinstaller and this time it finally completed without any errors!
After this, I could start VS just normally and creation of a new project was possible.
So, if you experiencing any troubles like this, I would strongly recommend to run a "Repair" or "Change" installation just over your existing one but try to avoid any firewalls between you and the internet.
1/ open control panel -> program and future - > IIS Express -> select Repair
2/ Refresh some time -> open Visual Studio
This 's about IIS Express in your computer . you only need to repair it in control panel is ok .
I tried and success.
My solution,
The Clang-format caused this. just disable clang-format:
Options->Text Editor->C/C++->Formatting->General->Eable ClangFormat Support
I had the same error when I tried to create a test certificate.
I have just launched VS as administrator.
And everything is Ok
The below solution worked for me
Make sure all the instances of Visual studio are closed.
Go to %LocalAppData%\Microsoft\VisualStudio\15.0_****
Delete the file privateregistry.bin
I tried changing the version of .Net Framework from 4.0 to 3.5 while creating the project. This solved my error.
enter image description here
Changing version of Net Framework
When I try to install Microsoft visual studio 2015 community it gives me error "setup blocked" and writes "The computer needs to be restarted before setup can continue. Please restart the computer and run setup again"
visual studio error
I tried to restart in various ways (for example canceling hibernate), but every time I get the same error. I tried to look it up, but couldn't find any solution that worked for me.
The full log of the error can be found here.
It might be important to mention, that at the moment I have visual studio 2012 on my computer, but if I try to uninstall it, I get the same error that the computer needed to be restarted.
Thanks.
edit:
I found a solution that worked for me (for all who encountered this problem):
http://www.itexperience.net/2009/06/25/bypass-pending-reboot-of-automatic-updates-0x8ddd0007/
In the registry there is a key (RebootRequired) which tells that you need to reboot your machine.
The problem was that the key existed when it shouldn't have (created on another time, but wasn't deleted afterwards).
By entering to registry and deleting this key, the problem is solved.
You can find the key at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\
based on:
http://www.itexperience.net/2009/06/25/bypass-pending-reboot-of-automatic-updates-0x8ddd0007/
You can temporarily override "Restart" requirement for Visual Studio installation.
Use
ignore-restart for Visual Studio .
I get the following dialog when I try to load any DB project in Visual Studio.
There is nothing else locking it, nor are the permissions on that specific folder restrictive.
This used to work, but I re-installed VS2008, then Sp1, a few hot fixes and GDR2.
Now, when I try to load any DB project, I get the dialog above.
When I open VS, I get the following dialog; it's different, but message is the same..
Try opening Visual Studio as Administrator.
You can check locks on files by using process explorer:
http://windowsxp.mvps.org/processlock.htm
You can download process explorer here:
http://technet.microsoft.com/en-us/sysinternals/bb896653