c# addin: reading .txt file works while debugging but otherwise does not load the addin

Hello All,

I have a code to read .txt and .xml.

It works well when i debug it  but otherwise does not work.

any idea?

SolidworksApi macros