.net - SQL Exception on immediate reconnect -


i have winform app uses linqtosql it's dal. there central sql db , each laptop has local sqlexpress db. seperate module, using merge replication, keeps 2 in sync. when connection lost central db 'fails over' local. works great.

however, when regain conection central db, if time period has not been real long, following exception -->

a transport-level error has occurred when sending request server. (provider: tcp provider, error: 0 - existing connection forcibly closed remote host.)

i have read through numerous posts here on so relating , msdn article outlines , explains, in great detail, going wrong yet, through of this, have still not found or read solution.

i wondering how others have dealt this. find hard believe treading new ground here. there way remove old connections on reconnect?

i losing hair on insight appreciated.

edit

also of note, quite positive data contexts wrapped in using , not have 'long-term' contexts.

turning off connection pooling using "pooling=false" connection string attribute seems have solved problem.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -