/egilh

Learning by doing

April 2006 Entries

I was working on a system that proxied external contents when I got 400 Bad Request errors for file names with a double period; file..jpg. IIS handled the requests just fine as /dir/file..jpg worked but ASP.NET bombed when I requested /dir/proxy.aspx/file..jpg : HTTP/1.1 400 Bad Request Connection: close Server: Microsoft-IIS/6.0 Content-Type: text/html <html><body>Bad Request</body></html> Microsoft Knowledge Base article 826437 explains how to fix it: Install .NET 1.1 Service Pack 1 Set the following DWORD registry value: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET VerificationCompatibility = 1 You also get a 400 Bad Request error ...

Solution Architect Forum: defining, building and using software factories is a free event organized by Microsoft with the help of Beat Schwegler, IT Architect - Microsoft EMEA and Ingo Rammer, Principal Consultant – Thinktecture Agenda: Software Factories Vision Software Factories Today A Software Factory to Build Factories Using a Software Factory Defining and Building a Software Factory

Or to be more correct: I go to school to be better a master. Sydney is a big dog, looks and walks like a wolf so people easily get scared. He is pretty smart and does what I tell him to unless he is distracted. Convincing him to leave the local dog playground usually takes a while so I contacted the local office of X-Plorer to learn more about how I can make sure I am always in control. Their philosophy is to reward good behavior instead of punishing bad behavior which I agree 110% with (even though it is difficult when you come home from work to find something destroyed...) The first lesson was completely theoretical so yesterday evening was the first real session. ...

I needed SendKeys in .NET CF when I implemented the AutoType feature in poSecrets. I found a SendKeys implementation on OpenNetCF. It implements the SendKeys logic for handling repetitions and special keys like shift, alt, ctrl, etc but it does not support upper case/lower case and some special characters. I thought I had to implement my own key map until I found PostKeybdMessage. It is perfect as it manages all the shift states. I modified the SendChar routine like this and now it works like a charm: private static void SendChar(byte k, byte [] mods){ // Use the PostKeybdMessage() api instead of keybd_event // as it correctly manages upper case, ...

My rough notes from today's WinForms track below. .NET Compact Framework 2.0 The best presentation of the day: Fabio Santino which had -one- slide: Agenda: Q&A.I have developed several applications with .NET CF so most of it was old news, but Fabio is a great presenter so enjoyed it anyway. I was particularly pleased to see that the Device Emulator in Visual Studio 2005 has improved a lot: it can run multiple emulators at the same time it uses a Strong ARM emulator so you can install standard pocket pc applications from the internet so you can make your own ultra portable personal pc I didn’t know it, but the Phone edition emulators have the phone number ...

I have added some more applications to my download section: poShoplist: A simple shopping list manager for Pocket PC poToday: A “Getting Things Done“ like task manager for the Pocket PC