Robert McLaws: FunWithCoding.NET

Public Shared Function BrainDump(ByVal dotNet As String) As [Value]

  • Real Nasty Virus Alert

    I was just notified by MailStreet, my Hosted Exchange provider, that there is a horrible new virus going around. I haven't heard of a virus this bad before. It brought down an entire Exchange 2003 server cluster this morning, and 50 other servers in their datacenter. I'll let the Washington Post fill you in on the details:

  • Walking the Call Stack

    Does anyone know how to walk the call stack on a calling assembly? I blogged earlier about a new limit I was writing for XHEO|Licensing. Basically I want to limit an assembly's use at runtime, but I don't know what that assembly is going to be at compile time. I have written some code that loads up all the running assemblies into an array, and walks the array to see if the assembly is loaded. That is not the optimal way however, because someone could just reference and load the required caller, then execute my assembly separately, because the licensed caller is loaded into the AppDomain.

  • Just When I Thought I Had Mastered DTC...

    ...it kicked my butt again. Last week, we migrated to new servers. Well, MSDTC reared it's ugly head again. I spent 6 hours tonight tryint to track down why the DTC transaction keeps dropping the connection. The answer? I still had the old server VPNed into the network. Disconnected the old server from the network, and BAM, my SQL transactions are working again. The problem? Damned if I know. DTC wasted ANOTHER 6 hours of my life... <sigh> :(

  • The REAL reason for Whidbey/Yukon delays

    It's funny to me how something can get twisted and turned around without the proper facts in place. I've seen quotes from Tom Rizzo up the yang about the Whidbey/Yukon delay, but I never really heard a decent explanation until I cracked open this week's edition of CRN magazine. Page 8 says:

  • Passport Is Down

    While far from a comprehensive study, I just tested computers on 3 different networks, and none can currently access the Passport service. Attempting to access http://messenger.msn.com returns a "Server is too busy" page. Any corroboration?

  • Typed DataSet Goodness

    I was working on VisualBlogger once again, and I was really getting frustrated with using app.config to store blog configurations. Using a ConfigSections wrapper was kind of overkill, and so was having the app dependent on an Access database. Andy Smith turned me onto the idea of using a Typed DataSet... something that I had never done before. I had no idea how cool these things are. I just built an XML file with the desired elements, loaded them up into a DataSet, spit out the schema XSD file using the DataSet.WriteXmlSchema method. Using the VS.NET Schema editor, I was able to change the data types, set constraints, and even create automatically incrementing primary keys. From there, I generated a DataSet using the Schema | Generate Dataset option, and voila! Now I have a simple method for accessing typed data, without having to use a database.

  • Shared Hosting Best Practices from Microsoft

    Like, Oh My God. I have been waiting for this document from Microsoft for AGES! There is soooooooo much good information in here about configuration, security, and coding best practices if you manage your own web servers. And best of all, it doesn't make any assumptions about your level of knowledge. It's straighforward, not heavy on jargon, has lots of cross-references, and is a real gem. Congratulations to whatever team at Microsoft put this together... it should set the standard for documentation from here on out. I'll wait patiently for this kind of quality docs from any MS team that puts this much effort into their docs. Hey, if you guys put this into some kind of reference manual, I'd buy it in a stone cold second.

  • VisualBlogger 2004 Teaser Shots

    I've been working non-stop on VisualBlogger 2004, my new blogging add-in for VS.NET. I got the really nasty code out of the way today, and there isn't much left to do. I wanted to tell you a bit about her, but she's very independent right now, so I'll let her do it instead. Hope you like.

  • Elaborating on an Earlier Post

    I wanted to take a second and defend my earlier post about WindowsForms. Had quite a few people point out how obviously stupid I was for not looking deeper into the system. So, I thought I would take a few minutes and point out what my specific beefs are, coming from the ASP.NET world. Just because I am normally a WebForms developer does not make my arguments any less valid, nor does it mean that this is my first time building a WinForms app. This is my first super-complicated WinForms, and I don't like the hoops that I had to jump through to make it work.