We can't help you - we have no idea what your code is doing, let alone how it is doing it.
But ... the most common reasons for apps working in Development but failing in Production are:
1) Connection strings: Particularly if they are hard coded into an app, but even configured ones need testing and are prone to errors on release.
2) Permissions.
I'm guessing (from "in binary file") that your problem is likely the second.
The most common reason for permissions being a produtcion problem are that you store data in the EXE folder, which in dev is a
bin
folder under your project, and in production is under the "Program Files" or "Program Files (x86)" folder - which is write protected to help reduce virus activity.
If you don't specify a full path when you write to your files, it goes to the EXE folder, and that fails in production.
This may help:
Where should I store my data?[
^]