Agree 100% with @jgiese.wci
If you are upgrading to 10 do it the right way
See:
I also agree. The OP said that he was in a crunch and just needed to get his existing code working, and would implement a better way whe time allows.
Well, I figured it out. Wasn’t the code at all. The upgrade adds in the Ice Company assembly references along with the Erp Company assembly references. I needed to remove the Ice ones and all is working perfectly.
Thanks,
Chris