Category: HowTo

Unable to remove app registrations from Azure Active Directory

Unable to remove (native) app registrations in Azure Active Directory

While cleaning up the app registrations in my Azure Active Directory, I ran into two applications I couldn’t delete since the ‘Delete’ button is not clickable. I’ve had this happen for both application types: both Web app /API and Native. It’s actually pretty simple to enable removing these app registrations: make sure the application is …

Read More “Unable to remove (native) app registrations in Azure Active Directory”

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 …

Read More “Getting Bootstrap to work on Windows Phone 8”

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 …

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

How to add Next and Previous buttons to Twitter Bootstrap tabs

Just a quickie today: when working with Twitter Bootstrap tabs, like I am in my ASP.NET MVC 4 project, you might want to add Next and Previous buttons on the tabs to create something of a Wizard. Here’sa step by step overview of how I did this: Add an ID to all the ListItem elements …

Read More “How to add Next and Previous buttons to Twitter Bootstrap tabs”

Debugging JavaScript with Visual Studio in an ASP.NET MVC 4 application

When debugging JavaScript in an ASP.NET MVC (4) application, it is not always enough to uncheck the ‘Disable script debugging’ checkboxes under ‘Tools’ – ‘Internet Options’ – ‘Advanced’ – ‘Browsing’. JavaScript inside a Razor view (a cshtml file) cannot be debugged from Visual Studio. To debug your JavaScript, move it to a separate .js file …

Read More “Debugging JavaScript with Visual Studio in an ASP.NET MVC 4 application”

How To: Call a generic method with a runtime type

Problem:Developing a generic class that maps datasets, datatables and datarows from a legacy system to my domain model, I ran into an issue. I wanted to call a generic method with a runtime type. Lets say the method looked like this: public string DoSomething<T>(string param). Because I use reflection to iterate properties on a type, …

Read More “How To: Call a generic method with a runtime type”

Enable preview in Visual Studio 2012 after Update 1

After installing Visual Studio 2012 Update 1, my Visual Studio stopped opening files in preview mode when I clicked them in the Solution Explorer. This setting seems to have changed with the installation of Update 1. To re-enable opening files clicked (once) in the Solution Explorer in Preview mode, go to ‘Tools’ – ‘Options’ – …

Read More “Enable preview in Visual Studio 2012 after Update 1”

How To: Create an ActionLink with a Twitter Bootstrap icon in MVC4

Twitter Bootstrap is a… “Sleek, intuitive, and powerful front-end framework for faster and easier web development.” One of the nice things in Bootstrap is you can use icons from Glyphicons. To use these, you can simply use this markup <i class=”icon-fire”></i> get a nice fire icon (). Translating this into an ActionLink styled as a …

Read More “How To: Create an ActionLink with a Twitter Bootstrap icon in MVC4”

Microsoft Touch Mouse, Visual Studio (2012) and scrolling

My Microsoft Touch Mouse stopped scrolling in Visual Studio on my Windows 8 machine some time ago. Because this kills productivity, I wanted to fix the problem. After trying some things I found that the problem only occurred when I ran Visual Studio as Administrator. Searching a bit further I found this bug to be …

Read More “Microsoft Touch Mouse, Visual Studio (2012) and scrolling”

HowTo: Have Visual Studio always run as administrator on Windows 8

In my previous post I wanted my Visual Studio to ‘Run as Administrator’ on my Windows 8 machine. I only managed to get this working for the pinned taskbar icon and not for items in the jumplist or for items you open by double clicking them. The solution to check the box ‘Run as Administrator’ …

Read More “HowTo: Have Visual Studio always run as administrator on Windows 8”

Documents.Open returns null, running Word automation under ASP.NET on x64

When building an ASPapplication that generates Word documents,  it was working fine on the local machine. A windows XP installation with Office 2007. When we deployed it to windows 2008 (64 bit) and Word 2007 we saw that Documents.Open returned null. Other than this, there are no exceptions. The code that returned the error (simplified): Application app = new Application();Document doc …

Read More “Documents.Open returns null, running Word automation under ASP.NET on x64”

HowTo: Save a file from Silverlight using the SaveFileDialog

Saving a file from Silverlight using the SaveFileDialog, added in Silverlight 3, is easy. If you’re used to desktop development however, you might find yourself getting a SecurityException with the message ‘File operation not permitted. Access to path ‘xxx’ is denied.’. Here’s why: In desktop development, you’re used to getting a filename from a SaveFileDialog. …

Read More “HowTo: Save a file from Silverlight using the SaveFileDialog”

HowTo: open all files from the Find Results window

Here’s a quick Visual Studio tip for you… I frequently search for a specific text in my solution because I need to do something in all places where that text occurs. Today I found out how you can open all the files that are mentioned in the Find Results window. Search for the text you’re …

Read More “HowTo: open all files from the Find Results window”

HowTo: have Visual Studio open XAML documents in code view

Just a small post to start the new year… and let it be a good one! When opening a XAML document in Visual Studio, it opens in split view by default. This might become annoying when you have a large XAML document, because all the content needs to be rendered before you can get some …

Read More “HowTo: have Visual Studio open XAML documents in code view”

Visual Studio: Zero-impact Projects & Cutting/copying empty lines

Yesterday I remembered two Visual Studio options Sara Ford told about in a presentation of her I attended a while back. Changing them made me happy… 🙂 Zero-impact projectsWhen I have to test something real quick, I tend to create a new project in Visual Studio and scribble some code to test whatever I want to test at that point. This …

Read More “Visual Studio: Zero-impact Projects & Cutting/copying empty lines”