An attempt to attach an auto-named database for file c:\hosting\webhost4life\member\shanti23\aba\LatestABAWebsite\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
we have to add following few lines to the App.conf file as below:
just refer the link: http://dotnetforum.lk/blogs/ammar/default.aspx
alternatively you can rename the database at the time of deploying the web application if any further exception bugged you! hopes this will help you all!