Publish errorhttp://forums.asp.net/t/1770098.aspx/1?Publish+errorTue, 21 Feb 2012 02:42:09 -050017700984834695http://forums.asp.net/p/1770098/4834695.aspx/1?Publish+errorPublish error <p>Im trying to publish a web site and this error keeps showing up.</p> <p>Error 1 Web deployment task failed.(Object of type 'dbFullSql' and path 'Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\DKBA27\documents\visual studio 2010\Projects\webapp Recycling\webapp Recycling\App_Data\aspnetdb.mdf;Integrated Security=True;User Instance=True' cannot be created.)</p> <p>Object of type 'dbFullSql' and path 'Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\DKBA27\documents\visual studio 2010\Projects\webapp Recycling\webapp Recycling\App_Data\aspnetdb.mdf;Integrated Security=True;User Instance=True' cannot be created.<br> Cannot connect to the database 'C:\Users\DKBA27\documents\visual studio 2010\Projects\webapp Recycling\webapp Recycling\App_Data\aspnetdb.mdf'.<br> An attempt to attach an auto-named database for file C:\Users\DKBA27\documents\visual studio 2010\Projects\webapp Recycling\webapp Recycling\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. 0 0 webapp Recycling</p> <p></p> <p>Not sure what to do. how do i fix this?</p> <p></p> 2012-02-15T22:16:27-05:004834867http://forums.asp.net/p/1770098/4834867.aspx/1?Re+Publish+errorRe: Publish error <p>hi u post ur print screen and code file ok</p> <p>u attach database with exact user and password of sql server than connect and pubish this is working fine.</p> <p></p> 2012-02-16T02:22:02-05:004835218http://forums.asp.net/p/1770098/4835218.aspx/1?Re+Publish+errorRe: Publish error <p>So do i connect to the database on the server my site is going on?</p> <p></p> 2012-02-16T06:31:05-05:004842073http://forums.asp.net/p/1770098/4842073.aspx/1?Re+Publish+errorRe: Publish error <p>Yes It is.</p> 2012-02-21T02:42:09-05:00