Issue when trying to connect to team foundation server - windows

I am quite new to Visual Studio and are trying to connect to a team foundation server. First I want to point out that if I go to the URL of the TFS in my browser and enter my credentials there I get access to the code etc, so there is no problem with the credentials itself.
Basically what I have done in Visual Studio 2012 is go to:
Team Explorer -> Connect to Team Foundation Server -> Servers -> Add -> Enter my credentials.
So after that a login screen appears which prompts for username/password ( which is very logic ), however here when I enter the same credentials I don't get access. In that login screen I can also see a "Domain" which seem to be something random that I have just entered when I installed windows and that domain has nothing to do with the TFS.
As you probably noticed I don't really know what that domain thingy does? Can that be the problem why I can't connect to the TFS server through Visual Studio but it works through the browser? Also if that matters I am connected via VPN to the place where the TFS server is located.

I just had the exact same problem connecting to TFS over VPN. I've been connecting with no problems for months, but I changed my Windows password while in the office yesterday, and couldn't log on from my laptop today.
Turns out that in the credentials box I was omitting my domain name. So instead of MY-WORK-DOMAIN\Itar I was just entering Itar.
(There was a domain name underneath - uneditable - that referred to my wireless router. That doesn't seem to be relevant when signing in.)
Once I entered my username as MY-WORK-DOMAIN\Itar and entered the new password it all worked.
I'm sure the OP has been sorted out by now, but maybe my answer will be useful to someone else.

Related

Visual Studio keep requesting to choose azure account even if logged in

I am using VS 2017 with an Azure account. The account is logged in and I can see the account details at the top right corner.
When I try to restore Nuget packages, I keep getting a window telling me to select the azure account I want to use, and my account is an option to select. Even when I select my account, the window keeps popping back over and over, and I can't seem to get the packages..
What can be done?
Two things you could try,
1)Try to clear the invalid cached data:
i) Close visual studio
ii) delete %localappdata%.IdentityService\
2) Report this problem via Visual Studio>Help>Send Feedback>Report a problem. This opens a new instance of "Visual Studio Feedback" which might solve your issue.
I remember facing a similar issue of being asked to sign-in repeatedly on a different workstation. I had to go to the Credential Manager to remove saved creds and re-login with mine. Please check if that helps.
I'm not sure what triggered my problems, but I assume I had problems with my PAT credentials at some point and then I started to modify nuget.config (can be found here: %APPDATA%\NuGet). In the end I had the correct credentials but a wrong address in my nuget.config and just did not notice the small difference. Unfortunately VS' only reaction was to keep asking me for my credentials when trying to connect me to the wrong NuGet feed address.
Instead of this (I use my-repo instead of the actual name):
<add key="my-repo" value="https://pkgs.dev.azure.com/my-repo/_packaging/my-repo/nuget/v3/index.json" />
I had this:
<add key="my-repo" value="https://pkgs.dev.azure.com/in3/_packaging/my-repo/nuget/v3/index.json" />
I assume I had taken it from some other post or tutorial instead of azure's Artifacts area (https://dev.azure.com/my-repo/mc-projects/_packaging?_a=connect&feed=my-repo)
So even though I had the correct credentials in the nuget.config VS kept asking me for the credentials because of the wrong URL :-(
The only hint that I got from VS was "Error Code: 16000" in the credentials dialog when clicking the ...
But that always made me suspect the credentials.

In VS2015 how & where do I configure the account that accesses the SharePoint Site/agile team functions?

Locally installed TFS2013, VS2015 and VS2013 using SharePoint services.
So far the development system is kind of OK, meaning I can create a collection, create a team project within a collection, add a new solution to that, run it, do a Check In and the SharePoint site shows the project code, etc. I can also create work items at the SharePoint site and from within Visual Studio.
But I'm having difficulty understanding how the user accounts are interacting. On my development workstation I logged in with a normal domain account. But I do not see work items assigned to that user name. I only see work items if they are assigned to the system Admin account.
I would have expected VS would be operating under the user account that I logged into Win10 with, but it seems to be operating as though VS is logged in as the system Admin.
Why is that? Is there a place where VS sets data that tells TFS what user name it is operating under? And, of course, I may be asking the wrong question because I don't understand the problem, but this is how it appears.
Added after initial post for clarity
This panel shot shows where the Work Items were not showing up for the user under Available Work Items. Because of the issue identified in the answer below, only work items assigned to Admin were present. But after clearing the cached credentials the work items displayed correctly according to the proper account, no longer acting as Admin.
This may due to the VS had cached your system Admin account.
The simplest way is to delete the related credentials which stored in control panel > Credential Manager> Windows Credentials
Then reopen the VS and try to connect to TFS server. It will pops up a credential window, just type your login domain account.

VS Express 2013 for Web - Browser is security restricted or JavaScript is disabled

I initially installed the Microsoft Visual Studio Express 2013 for Web on my desktop. My desktop runs Windows 8.1 with internet explorer 11. It ran fine until the license expired after the first 30 days. I tried to sign in to renew the license, however after clicking the 'sign in' button I get an error dialog. The dialog states 'Browser is security restricted or javaScript is disabled. I have no other option but to close and exit Visual Studio.
I went to the online forums for Microsoft. There were discussions and suggestions on how to fix the error. I tried lowering the settings for the security tab in internet explorer. I have validated the option for scripting is enabled. I have also added https://*.visualstudio.com to the trusted sites tab. Other users on the forum have tried the same suggestions and have not succeeded in signing into the visual studio application.
I had exactly the same problem, here is what I did:
a) Go in IE, click on settings wheel then Internet Options and Security tab.
b) Click on Custom level button (make sure you select Internet zone).
c) In Security Settings window, under Scripting I set Enabled for Active scripting.
After that Sign In should work. Even though Chrome is default browser, it seems that VS uses IE for sign in process.
Hope this helps!
There is another issue people are running into that is a bug with the login dialog. The login dialog is using a Web Browser control to login the user. By default it loads up "about:blank" as the URI. It then proceeds to try to execute some JavaScript (just ";") to verify it has permissions to do so. On some machines this is problematic because "about:blank" has been mapped to zone 0, or the Local Machine zone. When the JavaScript is executed MSHTML will check the zone of the URI and then the policy for executing scripts. By default the Local Machine zone is locked down, and all script executions result in a Query policy. What this means is if you're running in immersion mode (aka in Internet Explorer) you will get a message box asking if you want to execute the script. However, the Web Browser control used by VS 2013's "Sign In" dialog doesn't run MSHTML code in immersion mode, so the Query policy effectively equates to a Disallow policy. The bug here is someone in VS assumed "about:blank" resolves to the Internet zone, and when it resolves to the Local Computer zone you get this behavior.
The workaround is to remove "about:blank" zone mapping. Point regedit to this key:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains]
Remove the "blank" key.
Alternatively you can change the Local Machine Lockdown policy for executing scripts. The reg key for that is:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0]
Set the "1400" DWORD value to 0.
There are many sites you need to list in your Trusted Sites. Following the trace of what the stupid, stupid login script does:
https://.visualstudio.com
https://app.vssps.visualstudio.com
https://.accesscontrol.windows.net
https://auth.gfx.ms
https://login.live.com
Only then was I able to log on to my FREE software.
Hi this is Albert from Microsoft. Just want to let you all know that this issue has been fixed in the upcoming Update 2 for Visual Studio 2013. Thanks for your patience while we figured this one out :)
Same problem "Browser is security restricted or JavaScript is disabled" here but the solution from #jic didn't work for me..
If you can and it is convenient for you this is a solution which worked for me:
I have created a new user/profile on my PC and for this user it was just working fine.
Before this action I have tried to make an user account which had this problem as:
Power user - didn't work
Administrator - didn't work as well
So the last solution in my case was a brand new user on the PC..
Here's what worked for me.
Open Control Panel, Internet Options.
First, I clicked the Security tab and turned security the security for the Internet zone to its minimum.
Next, click the Privacy tab, then click Advanced. Choose "Accept" for both types of cookies.
Of course you can change these all back after extending your VS trial.
you must change secure settings of iexplore for admin account. If logon by other account, you must start iexplore under admin account or logon under admin account, because you will get license after admin account.
Click on Start --> Run --> type cmd and click on OK.
Command Prompt will be opened. Then enter this command.
ipconfig /flushdns
and press Enter.
Now try to access https://app.vssps.visualstudio.com/Profile/View
It worked for me...
As I can not add a comment yet to the answer of CBGraham, I've to add this note over here:
The solution described from CBGraham worked for me (Thanks Graham). I had to add an additional link:
https://account.live.com
Then I opened the IE and tried to login to a Microsoft site. I left the IE window open and just clicked once again on the VS to login. Then it worked for me. Even with strong restrictions on the IE settings. While I'm surprised why someone should set down his security settings, just to register VS.

User mycomputer\myloginName does not have required permissions

I am trying to access the report manager url for SSRS. But, I keep on getting the error below -
User mycomputer\myloginName does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed.
I tried to run my browser as admin as described here - User '' does not have required permissions, SSRS 2008 on Windows 8
with no success. I also don't see the 'site settings' on top-right corner as mentioned by so many people. Also, I cannot go through the pain of reinstalling SQL server all over again. I don't want to disable UAC.
I am unable to do anything because of this problem.
How do I fix this problem?
This solution is for Internet Explorer. I don't know how it can be done for firefox or chrome.
Link 1 -
http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/9b5a8763-84ce-46d0-b011-067ad39223d1/
See the solutions by Chirag Shah. Follow only up to step 13. I could not follow Step 14 because I found no home dialog box.
In the steps Chirag talks about some URL's. I don't really understand the meaning of any of those URL's. So, I used the URL under "Report Manager URL" in "Reporting Services Configuration Manager". It was
http://localhost:8080/MyReportServer.
The 8080 is a port number.
Once you finished this, go to the link below and follow all the steps -
http://www.soheib.com/technical-knowledge/sql-server-2012-reporting-services-uac-user-access-control/
In the 7th step, I saw a lot of check boxes. I selected all of them.
Finally, I can rest in peace. Hope it works for you too.
Also, when making the accounts described in the above link, you might see "BUILTIN\Administrators" account. Ignore it - thats what i did.
**END OF POST**
Steps taken from Chirag Shah's post -
Configure the report server for local administration. To access the report server and Report Manager locally, follow these steps:
Start Windows Internet Explorer.
On the Tools menu, click Internet Options.
Click Security.
Click Trusted Sites.
Click Sites.
Under Add this Web site to the zone, type http://ServerName. If you are not using HTTPS for the default site, click to clear the Require server certification (https:) for all sites in this zone check box.
Click Add.
Repeat step 7f and step 7g to add the http localhost URL, and then click Close.
Note This step enables you to start Internet Explorer and open either the localhost or the network computer name of the server for both the Report Server application and the Report Manager application.
Create role assignments that explicitly grant you access together with full permissions. To do this, follow these steps:
Start Internet Explorer together with the Run as administrator option. To do this, click Start, click All Programs, right-click Internet Explorer, and then click Run as administrator.
Open Report Manager. By default, the Report Manager URL is http://ServerName/reports. If you use SQL Server Express with Advanced Services SP2, the Report Manager URL is http://ServerName/reports$sqlexpress. If you use a named instance of Reporting Services, the Report Manager URL is http://ServerName/reports$InstanceName
i was receiving blank page after i was logging exactly 3 times on my report server URL.
i've Turn Off Internet Explorer Enhanced Security. On different OS's it is in different location. find the location and turn it off.
I hope this will help you.

Cant add solution to RocketSvn Repositories

I have been trying to set up RocketSVN server on win server 2008 R2 and the plug in client for Visual studio's 2010 but have been have a lot of trouble so will list what i have had issues with and what i did to get them working and where i am up to.
First I was having trouble connecting to the server through a browser which came down to the fact that i hadn't installed the Basic and windows Authentication on the server IIS features Doh! (fresh install :)) although it still didn't work until i went through the windows updates, After these steps i could connect to the Admin portal through a browser add add repositories and users yay!
Then i moved on to the Visual Studio's plugin and was having trouble being authenticated while trying to add or open a project from svn so back to Google and found a solution here http://community.axosoft.com/forums/thread/22088.aspx but was not using windows authentication which i wanted and was now getting another issue, I found that changing the binding in the IIS to HTTPS and setting a certificate let me use windows authentication and got me to the same position but now I'm stuck again....
tried to add images but wont let me Grrrr.... Edit : I can add images now :)
every time i try to add a solution i don't get a folder to save it to and the "Create Folder" button is greyed out all i get is the
Subversion Repositories
https://<server name>:8080
so am missing the svn/testrep/(testrep being my repository) folder to select and add my solution to..
I am using the repository URL found on the admin portal..
The error i get if i try and open a solution (even though i don't have any solutions in the repository i thought i might be able to browse it?) is
"server sent unexpected return value (405 not allowed) in response to propfind"
i hope some body can help me with this as I'm losing the will to live with this one :( i thinking its still a server set up issue but cant find any more info let my no if any 1 wants to see any server logs / config's / settings.
Cheers in advance

Resources