I started to comment out the lines of the agent and removed the 'Use' statement. It turns out the line that is causing both agents to fail is:
Dim session As New NotesSession
I tried doing the alternative form too:
Set session = New NotesSession
Did the syntax change? I am unable to find an R9 help document for the NotesSession class.