Click here to Skip to main content
15,913,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
MSIL
Database 'E:\Precompiled\Cfi.App.Cfcs\App_Data\Cfi.App.Cfcs.Dev.mdf' already exists. Choose a different database name.
Cannot attach the file 'D:\Projects\Cfi.App.Cfcs\Cfi.App.Cfcs\Cfi.App.Cfcs.WebUI\App_Data\Cfi.App.Cfcs.Dev.mdf' as database 'Cfi.App.Cfcs.Dev'.



This prob comes when i deploy the application. And the same works fine when running through the vs 2008 debugger.

Any clues?
Posted

1 solution

It's about database data/log files. While in development mode it looks like the database created has a location that is tied up with E:

while during deployment you are doing that through D: and the paths are different so getting this issue.

The way you had restored/using the database is causing you issues. Check that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900