Hi @masud Hosseinian ,
Although SQL Server Compact Edition supports concurrent database connections from multiple threads and multiple processes, concurrent access is not supported when the database file is located on a network drive. SQL Server Compact Edition prevents it by automatically acquiring an exclusive lock on the database file when a connection is made to the database file via a network share.
If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.