I worte an application based on oop layer , I have 4 C3 projects, PL (presentaion layer) as windows service I have BL (businnes logic) projects copiled as DLL and I have :
1) BE (businnes Elements) I used Linq to Sql Classes and also copiled it to DLL
2) DAL (Data Acces layer) I have mdf file that have al the classe drom the BE as tabels.
My question is – I deploy that solution in another server and when it try to read from the sql it get an error:
An attempt to attach an auto-named database for file F:\Users\Abramovitch\Desktop\FinalProject\RSA-Manager\RSA-Manager\bin\Debug\RSA-DB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
What should I insert in the AttachDbFilename ptoperty??
SQLServer (MDF Files) is not a single file database that you can move as you wish.
At least you need to install on the other server SQL Server with compatible version and try to attach your file.