I've actually solved the first issue; now my tool deploys when I click on it in the viewer. I get a window asking me to enter a pole number, but when I click the "Find" button, I get a new error, "Object reference not set to an instance of an object."
The majority of the code shown above is still the same, the only changes are to define the grid rows. Any help?