Hi Greg - other than the error, I think the major issue I'm having is that every time I try to execute code using InfoPath, an older version of this script gets executed instead.
For example: I originally had this script (call it Script1), which autofilled a text field on a test form with data, let's say "TestText1" in a Sharepoint document library page (Page1). Now, I change the data to "TestText2" and rerun Script1, but it creates a new document with "TestText1" in the field. I comment out the line of code that creates the document, rerun it, and it does the exact same thing, creating a new document with "TextText1" in the form field.
So, I create a new project (Script2) with the same code but pointing to a completely different document library section of Sharepoint (Page2) using "TestText2" as test data. When I run Script2, I end up with a new document on Page1 with TestText1 in the form, and no document gets created on Page2 at all. So, it would seem that some earlier version of Script1 is somehow getting executed from within InfoPath whenever I execute any script at all from Visual Studio, regardless of any changes I've made. I just can't figure out how to stop this from happening; it seems to be localized to my machine.