Category Archives: .NET development

Microsoft .NET Framework 1.1 on Windows Server 2008 R2 64 bit

It is not supported to run .NET Framework 1.1 on Windows Server 2008 R2, but it seems to work. What I did was to install: .NET Framework 1.1 .NET Framework 1.1. SP1 ASP.NET Security Update for Microsoft .NET Framework 1.1 … Continue reading

Posted in .NET development, Computers and Internet | Tagged , | Leave a comment

Upgrading old Visual Studio Solutions

I recently had to upgrade some old Visual Studio 2003 (!) solutions and projects to Visual Studio 2010. I tried to do that just by opening the solution and let the conversion wizard to its job. I had some challenges … Continue reading

Posted in .NET development | Tagged | Leave a comment

Error Upgrading Database Project Using Visual Studio 2010

I recently upgraded a database project (.dbp file) to Visual Studio 2010. All I got was an error saying “database project not converted” and “Illegal characters in path”. I turned out that the project file was in ANSI encoding and … Continue reading

Posted in .NET development | Tagged | 1 Comment

Non-blocking Read of Console Input that Works with Visual Studio Test

I had a console program and wanted to be able to exit that when the user pressed X. I couldn’t just use Console.Read or Console.ReadKey because they block. So I used Console.KeyAvailable to check if the user typed something before … Continue reading

Posted in .NET development | Leave a comment

Funny error message while running a test in Visual Studio

ContextSwitchDeadlock was detectedMessage: The CLR has been unable to transition from COM context 0x51e238 to COM context 0x51e2f0 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a … Continue reading

Posted in .NET development | Leave a comment

WCF Web Service Hosting Part 2 – netTcpBinding and IIS

This post is about how to host WCF services in IIS with netTcpBinding. I use the same test service and test client as in the previous post. WCF Service Host First, let us try it with the WCF Service Host. … Continue reading

Posted in .NET development | Leave a comment

WCF Web Service Hosting Part 1 – wsHttpBinding and IIS

This, and follow up posts, is about hosting WCF web services in IIS using different bindings. This post deals with the simplest scenario – wsHttpBinding. Create Test Service and Test Client The first step is to create a web service … Continue reading

Posted in .NET development | Leave a comment

Copying an XML document in a streaming fashion

I wanted to modify large XML documents slightly. Since they are large, I didn’t want to read them into memory using XmlDocument, but use XmlTextReader and XmlTextWriter to read and write in a streaming fashion. It turned out to be … Continue reading

Posted in .NET development | Leave a comment

Web test config file

If you tried to change your web test configuration settings by editing app.config, you discovered that it had no effect. That is because the web test runs inside Visual Studio Test Host, so you must edit C:Program FilesMicrosoft Visual Studio … Continue reading

Posted in .NET development | Leave a comment

Can’t find PInvoke DLL ‘sqlceme35.dll’

I was working with a Windows mobile application that uses SQL Server Compact. After upgrading to Visual Studio 2008 SP1 and SQL Server Comapct 3.5 SP1 I got MissingMethodException, Can’t find PInvoke DLL ‘sqlceme35.dll’. The problem is that the native … Continue reading

Posted in .NET development | 1 Comment