When I debug the program today, I find an error. When the breakpoint is caught, it reports "basic connection, open failed". I remember that my program can run before, but I was afraid that I had forgotten the program, so I carefully reviewed the code again. but I have not found any errors. It is really annoying. later, I thought, maybe not the reason for my program. I carefully read the error message. MSDTC on the "server" *** is unavailable. ", I checked it online. It turns out that a service was turned off accidentally.
Solution: 1. Choose Windows Control Panel> Administrative Tools> services> Distributed Transaction Coordinator> Properties> Start
2. Run "Net start MSDTC" under cmd to enable the Service.
Later, there was no problem with running the program. I remember that the service should be suspended following the 360 suggestions. It was really difficult to develop a program and the computer environment was ever changing. How could it remain unchanged?
It is expected that the graduation reply will pass successfully. Is it worthwhile to continue this process? But I don't have a better solution. Just stick to it.