Category: .Net

Developer goodies

So many new (.NET) goodies!

The people over at Microsoft have been working hard and have delivered a lot of stuff. That makes for a nice start after the holidays! So there’s a lot of cool stuff available to play with. I created some simple and easy to remember links for all of these goodies. Feel free to use and distribute …

Read More “So many new (.NET) goodies!”

.NET Core: not your daddy’s dotnet

We held a 2.5 hour presentation about .NET Core at the Betabit office in Rotterdam on March 29th. Where ‘we’ means my colleague Oscar van Tol and myself. We ended up having way too much content for the evening. We decided to host a hands-on workshop for those interested. At that workshop we will not only …

Read More “.NET Core: not your daddy’s dotnet”

Running Visual Studio as an administrator causes ‘Save changes to devenv.sln’ when double clicking solutions

After making sure my Visual Studio always ran as an administrator by following my own post HowTo: Have Visual Studio always run as administrator on Windows 8, I got a message if I wanted to save changes to devenv.sln each and every time I double clicked a Solution. Since the problem kept occuring after installing …

Read More “Running Visual Studio as an administrator causes ‘Save changes to devenv.sln’ when double clicking solutions”

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 …

Read More “Error: The Path ‘path’ is already mapped in workspace ‘workspace’”

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”

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”

TIP: “Paste XML as Classes” in Visual Studio 2012

In the past, when you had some XML document that you wanted to translate into classes we had to create / generate a schema based on the XML file. Next, we had to generate a class based on the schema with an external tool. Not all too user friendly and somewhat time consuming. In Visual …

Read More “TIP: “Paste XML as Classes” in Visual Studio 2012”

Unable to access the IIS metabase

I opened a solution in Visual Studio 2012 on my laptop running Windows 8, when I was presented with the error “The Web Application Project SomeWebProject is configured to use IIS.  Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.” The user I was …

Read More “Unable to access the IIS metabase”

Ajax Control Toolkit Calendar doesn’t close when clicking outside the calendar

Just a quick one: if you have a textbox with a Calendar (extender) from the Ajax Control Toolkit and an associated PopupButtonID which is an image, the calendar won’t close when you click outside the popup. Use an input type=”image”or an ImageButton to solve this problem. Hope this helps.

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”

Unhandled exception installing SQL Server 2008 R2 on a Windows XP / Windows 7 machine

When installing SQL Server 2008 R2 on a Windows XP (or, according to the comments, Windows 7) development machine that has been around for quite some time, I got an error stating an unhandled exception occured in the application (see image). The error showed up directly upon startup and read: An error occurred creating the …

Read More “Unhandled exception installing SQL Server 2008 R2 on a Windows XP / Windows 7 machine”

Error installing the Windows Azure AppFabric Tools for Visual Studio (CTP)

When installing the Windows Azure AppFabric Tools for Visual Studio (found here), you might get the error message shown on the right, stating that Windows Server AppFabric is installed and that it is not compatible with this release of Windows Azure AppFabric Developer Tools for Microsoft Visual Studio 2010 – June 2011 CTP. It asks …

Read More “Error installing the Windows Azure AppFabric Tools for Visual Studio (CTP)”

The Visual Studio 2010 Test Client for WCF services

When writing WCF services, most of us find ourselves writing quick test applications. To give you more time to do what a developer should be doing (adding business value to the project) the Visual Studio team added a WCF test client that can help you reach goals faster. This is not a very difficult application, …

Read More “The Visual Studio 2010 Test Client for WCF services”