Post your code that you used when the error occurred. Use "Go Advanced" within this forum's tools and choose the hashtag # to enclose your code with quote tags (retain formatting).
Indicate which line of code is causing the exception. You can see which line this is by choosing Debug when the error occurs.