andrewducker: (Default)
andrewducker ([personal profile] andrewducker) wrote2003-08-13 05:33 pm

More .NET fun

I've had a stressfull 24 hours. I hate it when things don't work. I hate it even more when things don't work and don't give you enough information to even start looking for your problem...

Erin had asked me to find her a baclup program and, following 3 hours of searching, I decided that there wasn't a simple program that would do the copying on a daily basis. so I'd write my own. How hard could it be?

I got a simple program up and running yesterday which copied a folder from one place to another. That was actually fairly easy. I then decided I needed to store a list of which folders needed to be backed up. Now, I could play around with databases, but frankly that would mean digging out Access and finding out how to do Data Access in .NET, more trouble than I could be bothered with at that moment. Instead, I figured I'd just store the data in XML. XML's dead easy, after all. Any idiot can do it.

So I broke out the .NET book I have, discovered I was going to have to get myself involved in schemas (which define what a valid XML file can look like) and threw myself into it. And bounced off. With a fucking usless error message.

24 hours later, and much swearing and stress later, I discover that the problem is that alhough my XSD had a perfectly reasonable heirarchical structure, and validated just fine, it didn't contain an actual 'element'. I assumed that the top of the heirarchy would get automatically recognised as the root, but no. Apparently I needed an actual element to sit at the top. Not that the error message told me anything that useful. Noooooo.

I haven't got anywhere near the actual programming bit, either. I'm still futzing around in the IDE. I hesitate to think what the actual programming will be like...