Hello, I apologize in advance If I'm posting this in the incorrect newsgroup for this topic but it seemed to fit best for me.

Here's my issue, I'm using automateword.dll to automate changes to a word document. I'm calling a method from another .dll (2.dll for this example) which runs a SQL Statement and I'm expecting a return value.

Whenever I do this I receive a “permission denied” error. I am able to execute the SQL statement directly from automateword, using 2.dll.cnnstr to grab my connection string, so it looks like I have all of the permissions I'd need to do this. When I test directly from my second dll the statement works correctly. It only fails when I call the method from my auomateword.dll.

Any advice in how to troubleshoot this would be greatly appreciated.
Thanks in advance.
-Luke.