I have a problem, I made a registry application with web services and I added a Log to verify the failures in case something strange happens, like connection failures.
When I install my program on other computers and I run it, do not believe it, can someone help me? The computer on which I install it has administrator permissions.
This is the sentence I am using:
System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\Program Files (x86)\Registro Leon-Comanja\My Product Name\logLeonComanja.txt", true);
This issue was resolved, well, concluded, because the truth never found my colleagues and I was the reason why he did not create the file, we made all the suggestions mentioned here but he did not leave us, in the end I had to check everything the code every time an error occurred. But I still appreciate that you have commented:)