Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. C# Error Config file

C# Error Config file

Scheduled Pinned Locked Moved Windows Forms
helpcsharpdatabasetutorialquestion
8 Posts 3 Posters 57 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 8567812
    wrote on last edited by
    #1

    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.conig

    Can anyone tell me how to solve this problem?

    thank you

    L 1 Reply Last reply
    0
    • M Member 8567812

      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.conig

      Can anyone tell me how to solve this problem?

      thank you

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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.

      M 1 Reply Last reply
      0
      • L Lost User

        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.

        M Offline
        M Offline
        Member 8567812
        wrote on last edited by
        #3

        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

        L 1 Reply Last reply
        0
        • M Member 8567812

          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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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.

          M 1 Reply Last reply
          0
          • L Lost User

            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.

            M Offline
            M Offline
            Member 8567812
            wrote on last edited by
            #5

            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

            L 1 Reply Last reply
            0
            • M Member 8567812

              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

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Sorry, but there is nothing we can suggest without a lot more information.

              M 1 Reply Last reply
              0
              • L Lost User

                Sorry, but there is nothing we can suggest without a lot more information.

                M Offline
                M Offline
                Member 8567812
                wrote on last edited by
                #7

                Thanks for your time I solved the problem

                A 1 Reply Last reply
                0
                • M Member 8567812

                  Thanks for your time I solved the problem

                  A Offline
                  A Offline
                  Anjali Arora 2022
                  wrote on last edited by
                  #8

                  A very exciting go through, Dehradun Escorts I may not agree completely, but you do make some really legitimate factors.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups