我老是遇到这个问题:
Publishing failed with multiple errors
未能读取文件:D:\workspace\netShop\netShopping\database\db_shopping_Data.MDF。
D:\workspace\netShop\netShopping\database\db_shopping_Data.MDF (进程无法访问文件,因为另一个程序正在使用此文件。)
未能读取文件:D:\workspace\netShop\netShopping\database\db_shopping_Log.LDF。
D:\workspace\netShop\netShopping\database\db_shopping_Log.LDF (进程无法访问文件,因为另一个程序正在使用此文件。)
可是我没有发现我还有任何程序在使用数据库文件啊?
Publishing failed with multiple errors
未能读取文件:D:\workspace\netShop\netShopping\database\db_shopping_Data.MDF。
D:\workspace\netShop\netShopping\database\db_shopping_Data.MDF (进程无法访问文件,因为另一个程序正在使用此文件。)
未能读取文件:D:\workspace\netShop\netShopping\database\db_shopping_Log.LDF。
D:\workspace\netShop\netShopping\database\db_shopping_Log.LDF (进程无法访问文件,因为另一个程序正在使用此文件。)
可是我没有发现我还有任何程序在使用数据库文件啊?
重新编译下,然后看problems中是否报异常!
不报异常应该是可以的!