C# Error Config file
-
Hello
I have a strange problem with the configuration of an application written in c # winform.I wrote a simple application that reads some records from a table in sql remote. in the App.config file I wrote the connection string and everything works.
I copied the bin folder on another pc and for error I renamed the configuration file <apptext> .exe.config in <apptext> .exe.conig
I run the application and the application rightly gave me error because it could not find the config file. I renamed the file correctly and everything works fine.What happens: :mad:
randomly when I do a restart of the PC, I find myself in the bin folder
the configuration file wrong, what I had written the first time <apptext> .exe.conigCan anyone tell me how to solve this problem?
thank you
-
Hello
I have a strange problem with the configuration of an application written in c # winform.I wrote a simple application that reads some records from a table in sql remote. in the App.config file I wrote the connection string and everything works.
I copied the bin folder on another pc and for error I renamed the configuration file <apptext> .exe.config in <apptext> .exe.conig
I run the application and the application rightly gave me error because it could not find the config file. I renamed the file correctly and everything works fine.What happens: :mad:
randomly when I do a restart of the PC, I find myself in the bin folder
the configuration file wrong, what I had written the first time <apptext> .exe.conigCan anyone tell me how to solve this problem?
thank you
-
First you have to find out why it is getting renamed in that way, and there could be many reasons. Without access to your pc it is not possible to guess.
thansk for reply is a week that I'm trying to understand what happens by the time I solved by copying the configuration file at to the start of the application but it's not good the operating system is windows 7 and I just can not understand on what happens. perhaps the first time, it was put configurator wrong in some cache and when restart the PC overwrites the existing one. I also removed the write permission to all users, including Administrator and System, the problem remains
-
thansk for reply is a week that I'm trying to understand what happens by the time I solved by copying the configuration file at to the start of the application but it's not good the operating system is windows 7 and I just can not understand on what happens. perhaps the first time, it was put configurator wrong in some cache and when restart the PC overwrites the existing one. I also removed the write permission to all users, including Administrator and System, the problem remains
-
I can only assume that you are running this in Visual studio and regenerating the file when you restart your PC. Check all the settings in Visual Studio to see that it does not have a reference to the "wrong" name.
Hi Richard thanks again for replay No, the application is not launched from Visual Studio I wrote, compiled and put on a pc And i checked into reference but nothing the strange thing is that it reappears old configurator even now he did ..................... I'm going crazy thanks
-
Hi Richard thanks again for replay No, the application is not launched from Visual Studio I wrote, compiled and put on a pc And i checked into reference but nothing the strange thing is that it reappears old configurator even now he did ..................... I'm going crazy thanks
-
Thanks for your time I solved the problem
-
Thanks for your time I solved the problem
A very exciting go through, Dehradun Escorts I may not agree completely, but you do make some really legitimate factors.