Error: Unable to copy file. The process cannot ..
Hi! I have an application, which contains 2 components: a server component (C#) and a client component (asp.net). both components use the same database, developped in sql server. if one component is running and if i'm trying to run the other, i get this error:


Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 2, 2013, 7:56 AM EDT
Violeta Popa132 reputationPosted Jul 3, 2013, 8:22 AM EDT
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 3, 2013, 10:39 AM EDT
Can I know, both components just read the file OR one is reader & another is writer?
Violeta Popa132 reputationPosted Jul 4, 2013, 12:14 AM EDT
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 5, 2013, 5:44 AM EDT
Database can always be shared at the same time by two different components unless you put any table lock or use transaction etc. Let me know your issue in more detail, or send the piece of code where both the components are using the DB and you get error.