Dotfuscator and KernelBase crashes, .NET crash with your application or service after obfuscation

Quick Tip: Don’t let Dotfuscator auto-sign your assemblies without specifying the key file explicitly. I spent the last hour beating my head into the wall, again, trying to figure out why Dotfuscator was creating a crap exe. I turned off every option, no help.I figured it must be because I am writing a windows service, […]

How to ignore the return code of a prebuild event tool in Visual Studio 2005/2008/2010…

I have seen a ton of crazy workarounds for handling this seemingly simple task. It turns out that most people change the project targets and other nitty gritty manual edit file changes. It turns out the way I am doing it is much easier. Visual Studio gets really annoyed when a tool returns anything but […]

InstallUtil and BadImageFormat with a normal C# service

So, you get the old BadImageFormat error when installing your service. If you aren’t writing C++ extensions, then this is probably because you forgot to use the right version of InstallUtil for your target platform. i.e. x86 build using x64 InstallUtil or vice versa. Easiest fix? Just build for Any CPU. Then you really don’t […]

Sorry for the server crash. Guess GoDaddy’s virtual servers are no match for SlashDot

I put up my fix for the McAfee bug and got slashdotted. Ouch, awesome to have the exposure but my web server crashed. I just had it rebooted, so it’s happy now! I guess my virtual server, which I expected to be decent, was no match for the traffic spike. Well, thanks for listening. I […]

How to fix the McAfee SVCHOST crash from the virus definition update

I was able to fix the virus definition debacle McAfee that is hosing a bunch of people. It turns out, that they put in a bad signature that quarantines your SVCHOST.exe which could cause your explorer to crash. Good times, right? So, the fix is pretty easy: 1 Restart into safe mode with networking 2 […]

HttpRequestValidationException after upgrading to .NET 4.0

The new .NET 4.0 changes the way that the page validation occurs. It puts in validation in more places now which can cause some issues. <httpRuntime  requestValidationMode=”2.0″ /> If you want to revert back to the old validation, just make the following change to your web.config. Make sure you set the validateRequest = false on […]

Unknown exception (0x8000500) when querying LDAP in .NET

I had a colleague that kept getting errors doing their LDAP queries. I realized that most developers don’t know about the sticky gotcha with the LDAP. Your url has to have the LDAP capitalized. Crazy right? So your query string: ldap://ldapServer:1000/ou=internal,ou=people,dc=yours,dc=com should be LDAP://ldapServer:1000/ou=internal,ou=people,dc=yours,dc=com Nice gotcha, right? Happy Coding!

Bit by Telerik. Redirect’s in my Ajax Panel not working with .NET 4 upgrade

I upgraded my project with the latest Telerik Q1 2010 assemblies and went to .NET 4.0 at the same time. Well, almost all of my pages that would issue a redirect after they completed their work started failing. I spent over a day trying to figure out the source. I watched Firebug showing the server […]

EntityDataSource WHERE filter not filtering the Data set in your grid…

I spent the last hour beating my deciding on which way to destroy my computer, as I battled why my Telerik RadGrid was failing to show the filter data set from my EntityDataSource. (Yes, lazy using these visual controls, but for reports they work well and easy) Turns out, I had Filtering ON on the […]

Why does my .NET application with Authenticode signed dll’s take so long to load?

You thought to yourself, “Self, I think I should sign all of my dll’s with my authenticode certificate!”. Why ,not? It would make the application appear secure with digital signatures and all. I can use publisheridentity attributes for security and all should be well. Right? The issue comes to the way the .NET loader handles […]