MySql Connection unexpedly terminated RRS feed

  • Question

  • User-1630683140 posted

    Hi everybody !

    For some time a randomly my application crashes at startup. In the page_load I will read in a database and I get this error: Connection unexpectedly terminated. The only way I found to solve the problem is to return the same web.config. I know that when we refer this application of force to restart but I would not be forced to always do that.

    someone can help me?

    thank you!

    Wednesday, March 7, 2012 9:48 AM

All replies

  • User-851967432 posted

    What do you mean...return the same web.config?

    Wednesday, March 7, 2012 9:54 AM
  • User-1630683140 posted

    I go on the server, i copy the web.config on my desktop and I resend the same web.config on the server by overwriting the "old" web.config

    Wednesday, March 7, 2012 10:01 AM
  • User-1630683140 posted

    If that can help somebody, i got a screenshoot of my problem

    Screenshot of error

    Wednesday, March 7, 2012 10:04 AM
  • User-851967432 posted

    How is your web.config being overwritten without your intervention?

    Wednesday, March 7, 2012 10:07 AM
  • User-1630683140 posted

    I copy the same as the old web.config I just copied to my desktop. So I go on the server, I will in my application, I copy my web.config on my desktop and then I re-sent to the server in overwriting existing one. This solves my problem temporarily but often day after because I have to restart the operation

    Wednesday, March 7, 2012 10:12 AM
  • User-851967432 posted

    That wasn't my question. My question is, why is your web.config on the server either being overwritten or corrupted? What's happening to the web.config on the server? Why do you have manually overwrite it?

    Wednesday, March 7, 2012 10:14 AM
  • User-1630683140 posted

    Scuse me.

    because it is the only way I found to get around my problem manually. Do overwrite the web.config of the application and after kills connections that are as appropriate to the database.

    I look at my code in full and I did find a place or my connections remained open. So I do not understand why I always kill my application to restart properly and that a randomly

    Wednesday, March 7, 2012 10:22 AM