TF30063: You are not authorized to access …

9 08 2013

When working with more than one account, you frequently get an error trying to connect to a TFS server. This happens both in the on premises or int the TFSPREVIEW.COM service. The most painful process, suggests you clear all your ached credentials, but this is a real pain, and you’ll have to do it every time you change the server/project that requires a different account.

Searching for a solution, I found this great/simple/elegant post (http://stackoverflow.com/a/13989712) with my favorite solution for the problem:

  • open a browser window inside the Visual studio (View->Other Windows->Web Browser; Ctrl+W, W (or Ctrl+Alt+R in VS2012))
  • access the server URL
  • logout from the erroneous account
  • now connect to the server again and inser your correct credentials

 

Your done!

 





Quick tip: where is IISAPP?

26 01 2013

IISAPP.vbs was a nice script that listed the applcation pools running in a box. This information is quite usefull, namely for debugging processes. The command is no longer available in the most recent versions of the OS, bu there is a work around: appcmd.

open a command prompt and run “c:\windows\system32\inetsrv\appcmd List WP” and you’ll get a list of running application pools with the corresponding process IDs.

Have fun debugging! 🙂





A day in the field: my usual tools and the new goodies

11 04 2012

Being a senior consultant in the Information Worker area, Sharepoint and development are my middle names on a day-by-day basis.  Every year I actively work on 15 to 20 projects, most of them in different clients, with different teams.

As most of you, I simply feel repetitive work is a serious waste of time and resources, for which I don’t have a miracle cure, but I do have a couple of what I like to call good practices, that help  me reduce repetitive work and thus elevate my productivity levels to a reasonable self-satisfying level. Here are some of them:

This pretty much covers my main project day life with Visual Studio and TFS 2010!

Now, if you want to have some fun, check out the new wave of Visual Studio 2011 coming out. New EDI, TFS and the TFServices are better than ever. Also the VS ALM Rangers team has shipped a new set of projects ready for the new platforms that are really worth wile. Here are some links for your greedy thirst for coding fun 🙂 :

No GO And have fun 😀





Popup that doesn’t go away: please wait while the installer finishes determining your disk space requirements

9 03 2010

Recently, while preparing a fresh set of development virtual machines, I started getting a popup window with the message “please wait while the installer finishes determining your disk space requirements”. This happened every time I tried to install a msi. apparently this is a bug with the msi engine. A workaround that did the trick was to on the command line and execute the following command:

msiexec /package .msi /qr

I’ll try to add some more information on the problem itself ASAP.

Cheers,

Rui





Technical magazines

26 10 2009

Finding good technical magazines is not allways a simple task. I’m sharing here 3 of my favourite mags distributed freely online in pdf format:

The Architecture Journal

MSDN Magazine

TechNet Magazine

Enjoy.





Integrating SPDisposeCheck with your visual studio

10 08 2009

I don’t know about you, but I like to have my tools handy 🙂
With this in mind I suggest the approach described here: http://www.sharepointdevwiki.com/display/public/How+to+integrate+SP+Dispose+Check+into+Visual+Studio+Solutions.

Simple and neet.





Project Catharsis or the story of a blank line

11 05 2009

This post may come to you in many formats:

  • Surprise as my posts are usually less verbose
  • As a major pain in you bally (due to a huge laughing crisis) if you were part of the team involved in the situation
  • As a major heads up to everyone who think that working beyond your limit is the way to deploy a project

 

The story is about 4 wasted hours of a team of 5, in the deployment of a critical project.

“What was the cause of that?!” you may ask… and the answer is: “A blank line!”. Actually I could add some bad words to that answer, but I’ll just leave it at that.

The project was successfully deployed, after a week of day and night effort of the team and it was finally time to load test it and get some actual readings of the capacity of the infrastructure. For the test I was using Visual Studio 2008, with a test project, all nicely configured with dynamic data sources, CSV files, a nice set of webtests and the load tests to go with it.

The project had been tested against the quality environment and everything worked smoothly. By the time I started hitting the production environment with the simplest test (load homepage with login process), I started getting 50% of 401s (access denied). OOPS! What the heck is going on?? I tried the webtest by itself (1 shot) and it went smoothly. Then I tried the load test and 50% were access denied. Lowered the number of concurrent users and the percentage was the same!? Well, we’ve started the obvious and not so obvious process:

  • Event log
  • Sharepoint logs
  • IIS Logs

None of these came up with unexpected information. Well, in the end that wasn’t correct, but I’ll fill in the gaps later on.

It’s time to bring in the artillery, I thought. Fired up WinDbg, which revealed nothing new, just loads of it… have you ever tried to debug a system while it was being load tested? Well, let’s just say: DON’T.

OK, by this time I was throwing out the towel. “Let’s hit another server! Probably there is some problem with this machine…”. And so we did. And the crap hit the fan again.

By now it was official: panic was setting in. Some of the members of the team were starting to roll back code, and the chaos was just around the corner.

In a desperate move, I tried hitting the quality environment again and the problem persisted. Ok we have a common denominator: my machine. This suspicious actually came true, when we used another machine to perform the test. The test came clean. And suddenly … a light at the end of the tunnel! (and it wasn’t a train heading for us…).

I use a CSV with the list of users that will logging in the application. We were using just 1 user at the time, so what would happen if there was 1 line feed too many ??? Exactly! Once in every 2 tests, there would be a test trying to login with A BLANK LINE!!!!!!!!!!!!!!!!!!!!! There it was: the magic number – 50% of access denied.

The thing is, in the IIS log files, there were some lines with the access denied and there was no username!!! But, tired as we were, we just missed it.

So, as a punch line, be rested when you are deploying a system…

 

PS: Thank you LM, PR, AR e RS for you support J