PDA

View Full Version : خطای UNC share چیست؟



Engineer_Yasin
جمعه 01 شهریور 1387, 01:50 صبح
وقتی با IIS برنامه را تست می کنم خطای زیر را مشاهده می کنم! اشکال از کجاست؟ راه حل آن چیست؟



An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AnbarDataBase.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AnbarDataBase.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Engineer_Yasin
شنبه 02 شهریور 1387, 00:31 صبح
کسی نیست جواب ما را بده؟؟؟

mostafa_sgh
شنبه 02 شهریور 1387, 01:09 صبح
رئیس میشه کد مربوط به همون صفحه رو اینجا بزاری با Web.config ....

اطلاعات کافی نیست !

اینطوری فقط کسائی که به این مشکل بر خورد کردن به دادت میرسن ( تازه اگه پیداشون کنی )

Engineer_Yasin
شنبه 02 شهریور 1387, 10:58 صبح
رئیس میشه کد مربوط به همون صفحه رو اینجا بزاری با Web.config ....

اطلاعات کافی نیست !

اینطوری فقط کسائی که به این مشکل بر خورد کردن به دادت میرسن ( تازه اگه پیداشون کنی )

آقا دستت درد نکنه! اما مشکل اینجاست که با هر کدی این مشکل را داره! کدها موردی ندارن چون روی سیتم دیگه جواب میدن! فکر کنم اشکال از Sql باشه اما نمیدونم اشکال از کجاست!

hosseinab
شنبه 02 شهریور 1387, 11:09 صبح
A database with the same name exists