Category: Error

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)”

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”

‘Cannot find entry to delete’ deleting files from a Zip with (SL) SharpZipLib

For a project I’ll probably dedicate a post on this blog to in the future, I needed a ZIP library for Silverlight. After asking around on twitter (@rickvdbosch) I was pointed towards the SharpZipLib port on Codeplex, found on http://slsharpziplib.codeplex.com. Basically what I wanted to do was replace a file inside the ZIP file with …

Read More “‘Cannot find entry to delete’ deleting files from a Zip with (SL) SharpZipLib”

Using Crystal Reports in ASP.NET on a 64 bit machine

The above scenario gave me the well-known could not load file or assembly error message. The assembly that couldn’t be found was  ‘log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304’. Or one of its dependencies of course… The situation in which I was getting this error message: using the CrystalReportViewer in an ASP.NET application having the ASP.NET application hosted …

Read More “Using Crystal Reports in ASP.NET on a 64 bit machine”

Little-heard-of ASP.NET feature: app_offline.htm

Although the feature has been around since ASP.NET 2.0, I still meet people that don’t know and/or use app_offline.htm. Do you know (and use) the feature…? When working on an ASP.NET web application, you should notify your visitors in a decent way that your application is down. There’s a nice default feature available for these …

Read More “Little-heard-of ASP.NET feature: app_offline.htm”

“AjaxControlToolkit is undefined”

Because we were still using an old Visual Studio 2005 solution which included a Web Site project, it was time to upgrade. We upgraded our Visual Studio 2005 solution to Visual Studio 2010 (and .NET 4.0), converted the Web Site Project to a Web Application Project and then, of course, the AjaxControlToolkit had to follow. …

Read More ““AjaxControlToolkit is undefined””

In this mode, command line arguments will not be passed to the executable

When trying to pass some command line arguments to a Console Application, I got the following message: “The current project settings specify that the project will be debugged with specific security permissions. In this mode, command line arguments will not be passed to the executable. Do you want to continue debugging anyway?” (see image) I …

Read More “In this mode, command line arguments will not be passed to the executable”

Clicking ‘Choose items’ on the toolbox crashes Visual Studio 2008

I’ve had my current installation for a few months now, and I’ve used it for development purposes. Today I suddenly encountered an error when trying to add items to the Toolbox. Visual Studio 2008 simply disappeared… No errors, no warnings, it just went away. After some searching and a lot of trying, I found that …

Read More “Clicking ‘Choose items’ on the toolbox crashes Visual Studio 2008”

Inline wrappers & Response.Redirect() == Error

While developing a page that was to be used through an inline wrapper, I got an error: “Validation of viewstate MAC failed”. This error can usually be resolved by disabling event validation, viewstate encryption or viewstate for the MAC. In my case these solutions did not resolve the issue. After some testing Response.Redirect appeared to …

Read More “Inline wrappers & Response.Redirect() == Error”

Ajax Control Toolkit controls don’t show up in Visual Studio toolbar

Because I stopped working at Avanade and started my own company (this web site is under construction and in Dutch), I had to buy and install a new laptop. Everything went great and I was up and running in half a day. Or should I say half an evening… 😉 The next day I wanted …

Read More “Ajax Control Toolkit controls don’t show up in Visual Studio toolbar”

An inline wrapper and having too much on your head

We developed an ASP.NET page (A) to be wrapped in an existing PHP page (B) using an inline wrapper. After a few days in which both pages displayed nicely, our page (A) suddenly got displayed twice inside the existing page (B).  And even weirder was that the postbacks of the first occurrence didn’t work, and …

Read More “An inline wrapper and having too much on your head”

iTunes 8 translation glitch

I installed iTunes 8 on our laptop, and connected an iPod to check if all worked accordingly. The iTunes was installed in Dutch, so the displayed information was also. Apparently, when you’re Dutch, you get some extra capacity on your iPod, free of charge!   iTunes displayed the free space on the iPod as being …

Read More “iTunes 8 translation glitch”

Running code analysis on a custom stsadm command gives errors CA0052 and CA0055

When you want to implement a custom stsadm for SharePoint, all you realy have to do is implement the Microsoft.SharePoint.StsAdmin.ISPStsadmCommand interface. Because I develop on a machine with no SharePoint installed, I (only) copy the assemblies I need to develop locally. For the stsadm command I was working on recently (more on this in a …

Read More “Running code analysis on a custom stsadm command gives errors CA0052 and CA0055”

Unable to connect publishing custom string handler …

After developing a custom Web Service to be hosted in SharePoint (based on this HowTo article on MSDN) and deploying it on a testing environment, I got some entries in the EventLog over there, stating: “Unable to connect publishing custom string handler for output caching. IIS Instance Id is ‘xxxxxxxxx’, url is ‘http://internalsharepointserver/somesubfolder/services.asmx“ The PublishingHttpModule …

Read More “Unable to connect publishing custom string handler …”