报了这个错误,查了很多也没查到解决方案
An attempt to attach an auto-named database for file C:\Users\Thistle\Documents\Visual Studio 2010\Projects\Post\App_Data\DouBao.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. 就帮助!

解决方案 »

  1.   


    http://topic.csdn.net/u/20100421/11/cdb5787c-5e89-4a93-b884-98d0fc00191c.html
      

  2.   

    你的数据库是不是通过UNC上传的啊???
    http://hi.baidu.com/dxawddd/blog/item/f1da152a1a88a29f023bf6dd.html
      

  3.   

    1、数据库所在的文件夹给了权限没?
    2、A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. 这句话是说具有相同的名称存在 或指定的数据库无法打开
      我估计是你权限的问题!  检查下文件权限
      

  4.   

    App_Data下面的数据库文件重名了 删除一个。
      

  5.   

    是不是 程序发布文件夹层次里多个连接数据库的webconfig文件?