运行数据库时出错 [英] error running database

查看:87
本文介绍了运行数据库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#发布了应用程序,但发生以下数据库错误.

System.Data.SqlClient.SqlException:尝试为文件"Location"附加自动命名的数据库失败.存在具有相同名称的数据库,或者无法打开指定的文件,或者该数据库位于UNC共享上.

解决方案是什么?

i published application with c# but below database error occur.

System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file "Location" failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

whats solution?

推荐答案

选中此&修复自己

Check this & fix yourself

Tip #106 Did you know … How to solve the errors when aspnetdb.mdf is created dynamically with IIS?[^]


hi,
点击我 [

Click me[^]


这篇关于运行数据库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆