Blog

Below are the ten most recent posts from my blog, mirrored from the original at rick.bloggingabout.net.

Fixing the Remote Desktop Connection to a Virtual Machine in Microsoft Azure

A few minutes before my second session at the Dutch Techdays started I tried connecting to my Virtual Machine in Microsoft Azure through remote desktop. It didn’t connect… The RDP client tried to connect to the Virtual Machine, but nothing happened. So I rebooted the VM and tried connecting again, confident that this would solve the problem. It didn’t connect…. again. As I started stressing out a bit (the VM was the main character of my session) I thought of one last thing I could try. Fixing the issue The next steps helped me save my Virtual Machine without too much loss of time (I was able to connect again just before the start of my session!): Go to the Azure Management Portal Open up the details of the VM you’re having trouble with Go to the ENDPOINTS tab (see image below) Select the ‘Remote Desktop’ endpoint and click EDIT at the bottom of the screen Change the public port to a different (random) number Wait for the changes to be propagated Success! Hope this helps.
posted on Wednesday May 07 2014
tags: azure, Congresses, Error, Tip,
 

Techdays 2014 The Netherlands

As I wrote earlier I presented at the 2014 Dutch Techdays. The session content is now available online. Find it here (Dutch): Session information + PDF of my presentation My presentation on SlideShare My session on Channel 9
posted on Wednesday May 07 2014
tags: azure, Congresses, HPC, Link, Personal,
 

Error comparing historic versions of a TFS source controlled file

When working with Visual Studio 2012 on our current project, the error ‘These files are not text files and cannot be opened in the comparison window.’ shows up every now and again. I’ve tried several things to solve this problem. Here’s the one that works: Close Visual Studio Navigate to your version of the ‘c:\users\{username}\AppData\Local\Temp\’ folder Delete the TFSTemp folder Restart Visual Studio and try again. You should be good to go! Hope this helps.
posted on Wednesday March 12 2014
tags: Error, TFS, VS2012,
 

Getting Bootstrap to work on Windows Phone 8

There are a couple of websites I manage that use Twitter Bootstrap*. These websites are fully responsive and work well on all devices. Or actually, almost all devices. The wrapping of columns in a container on a Windows Phone doesn’t work the way you’d want it out of the box. Windows Phone interprets device-width as the actual resolution size. Other mobile browsers use what the manufacturer (or browser vendor) has decided is the optimal viewport width. To fix this issue, follow these steps: Add this line to use –ms-viewport in your CSS file @-ms-viewport{ width: device-width; } Add this line to the head tag of your HTML page (it’s probably already there since you’re using Bootstrap) <meta name="viewport" content="width=device-width, initial-scale=1" /> Add this JavaScript function as the first script in the head tag (because of a timing issue it won’t work if it isn’t the first script) (function() { if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) { var msViewportStyle = document.createElement("style"); msViewportStyle.appendChild( document.createTextNode("@-ms-viewport{width:auto!important}") ); document.getElementsByTagName("head")[0].appendChild(msViewportStyle); } })(); I found this solution over at Matt Stow’s blog ‘Firewoiks’. You can find the original article here. Hope this helps. * The Bootstrap project is no longer under the Twitter brand. Originally created by a designer and a developer at Twitter, Bootstrap has become one of the most popular front-end frameworks and open source projects in the world. – about Bootstrap
posted on Friday February 21 2014
tags: Development, HowTo, Tip, Twitter Bootstrap,
 

Speaking at TechDays 2014

I’m proud to announce that this year I’ll be speaking at the TechDays in the World Forum in Den Haag, April 16 – 17. This session will be about High Performance Computing in Windows Azure. Camera resolutions keep increasing, your digital behavior on websites and in apps is collected, images that satellites make get more and more detailed and (research) equipment produces more data. The amount of data that’s being stored keeps increasing. This data often has to be processed to become information. With increasing amounts of data to be processed the need for a Cluster like solution to achieve this within acceptable time grows. With the rise of the Cloud you don’t need to have that Cluster in the basement anymore, but you can leverage the power and capacity of the Cloud. In this session you see how High Performance Computing in Windows Azure can be used to distribute processing tasks to multiple machines in Windows Azure.
posted on Friday February 07 2014
tags: azure, Congresses, Personal, Tip,
 

Blog moved…

Bloggingabout.net has moved from Community Server to WordPress. One of the changes that comes along with this is that the URL of my blog has changed too. I went from bloggingabout.net/blogs/rick to rick.bloggingabout.net. Thanks to Dennis for putting in a lot of time and effort to migrate BloggingAbout to our new WordPress environment. I’m looking forward to adding a lot more interesting content to my blog in the new Bloggingabout.net!
posted on Tuesday February 04 2014
tags: Blog,
 

HowTo: sign out of Visual Studio Online (when deleting cookies won’t help)

When you have more than one Microsoft Account that you use regularly, you might recognize the scenario where your Visual Studio keeps you signed in to Visual Studio Online… with the wrong account. You keep getting messages that you don’t have access rights. Restarting Visual Studio, rebooting and even clearing all (Visual Studio) cookies doesn’t help. Here’s a quick fix: Open Visual Studio Open the Visual Studio web browser (under View, Other Windows, Web Browser) Go to Visual Studio Online Click sign out You should be good to go now! Hope this helps.
posted on Wednesday November 27 2013
tags: HowTo, TFS, Tip, Visual Studio, Visual Studio Online,
 

ScriptErrors opening (a new tab of) IE10 on a Windows 7 machine

I’ve been running into the error message on the right (“Unable to get property ‘style’ of undefined or null reference”) when opening an instance or a new tab of IE10 for the past couple of weeks. It didn’t matter what start page I used, since I tried about:blank, google.com and approximately a dozen more. I found out McAfee SiteAdvisor was the cause of this error pretty quick, but since the company I’m currently in doesn’t allow users to disable SiteAdvisor and I needed IE10 for some testing purposes, I had to find a different solution to the problem. I found a workaround which will do for now: in IE10, go to ‘Tools’ then ‘Compatibility View Settings’ and check ‘Display all websites in Compatibility View’. This will, as you imagined, open all pages in Compatibility View which causes the errors to stop popping up. It is not an ideal solution, but it’s better than closing a script error message for every single IE instance or tab that is opened. Besides, it’s pretty easy to get IE to render as true IE10 in stead of Compatibility View by changing the browser mode to IE10 in the F12 developer tools. Good to know: after changing browser mode to normal IE10 in a tab, the error doesn’t occur in that tab for the current or subsequent pages you visit while it maintains the Browser Mode. Of course new instances and new tabs will have Compatibility View enabled again. Hope this helps
posted on Thursday July 04 2013
tags: Error, javascript,
 

Error: The Path ‘path’ is already mapped in workspace ‘workspace’

Just a quick little post today: I got the error “The Path ‘path’ is already mapped in workspace ‘workspace’” when I connected to a new Team Foundation Server and tried to map my workspace today. I had connected to a Team Foundation Services project a while back to get some shared code, but I already removed the workspace and the server binding. Even though Visual Studio didn’t see any other bindings, mapping my workspace to the same folder the previous TFS binding was mapped to served me this error. The quick solution: manually edit (or remove if you don’t have any other bindings) the file VersionControl.config, which can be found under %AppData%LocalMicrosoftTeam Foundation4.0Cache Hope this helps.
posted on Tuesday April 02 2013
tags: .Net, Development, Error, TFS, Visual Studio,
 

Visual Studio 2012 crashes when opening an ASP.NET MVC project with a cshtml open

A rather long title for this post, but that’s exactly what happened: when I opened an ASP.NET MVC 4 project with a cshtml view open, Visual Studio would crash with the error messages seen on the right. This would only occur if the first project I opened had a cshtml file open. When I opened another (type of) project first and then opened a project with a cshtml file open, the problem did not occur. Debugging Visual Studio with a new instance of Visual Studio (Inception anyone?) made things a bit clearer. (Part of) the exception information: Source WebEssentials2012 Message Could not load type ‘Microsoft.Less.Core.LessMixinDeclaration’ from assembly ‘Microsoft.VisualStudio.Web.Extensions, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. After searching around a bit, I found this blog post by Mads Kristensen: Web Tools 2012.2 and Web Essentials. This post talks about Web Tools 2012.2 and Web Essentials 2.5, and how an error can occur if you install Web Tools 2012.2 and don’t upgrade to Web Essentials 2.5. However, I do have Web Essentials 2.5.1 installed so this issue shouldn’t be the same as mine. Although my situation didn’t match the one on Mads’s blog, I decided to install Web Tools 2012.2 just to see what the result would be. As it turned out, installing the Web Tools 2012.2 did solve the problem. Here’s why I think this solved it: I had an older version of WebEssentials installed, which included specific functionality. This functionality was moved to Web Tools, and out of the new version of Web Essentials. When I updated to the new version of Web Essentials (without having Web Tools installed!), the functionality was no longer available in Web Essentials giving me the ‘Could not load type’ exception. I’m not sure […]
posted on Friday March 15 2013
tags: debug, Development, Error, MVC4, Visual Studio, VS2012,
 

latest tweets