PDA

View Full Version : خطا در اتصال به دیتابیس روی هاست



reza4359
چهارشنبه 11 فروردین 1389, 19:46 عصر
دوستان من موقع attach کردن دیتا بیسم توی aspspider با خطای زیر مواجه میشم
Error attaching database. System.Data.SqlClient.SqlException: Cannot create file 'C:\MemberSites\MemberSites_AspSpider_Info\rezaima ni\database\ASPNETDB_log.LDF' because it already exists. Change the file path or the file name, and retry the operation. Could not open new database 'rezaimani_ASPNETDB'. CREATE DATABASE is aborted. File activation failure. The physical file name "C:\Documents and Settings\y ali\My Documents\Visual Studio 2008\WebSites\ostad\ostas\App_Data\aspnetdb_log.ld f" may be incorrect. at System.Data.SqlClient.SqlConnection.OnError(SqlExc eption exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQuer yTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNo nQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at SpiderWatch.HostManager.AttachDatabase(String userId, String databaseName, String dataFile, String NetworkPath, String LocalPath, eUserType UserType)
Error opening attached database. Cannot open database "rezaimani_ASPNETDB" requested by the login. The login failed. Login failed for user 'DOTNETSPIDER1\dotnetspider'.