Author Topic: the database file may be corrupted... hatası  (Read 14190 times)

enesgungordu

  • Newbie
  • *
  • Posts: 5
the database file may be corrupted... hatası
« on: May 23, 2012, 01:47:38 pm »
the database file may be corrupted... hatası alıyorum... :( çözümünüz nedir...

marikoglu

  • Sr. Member
  • ****
  • Posts: 406
  • Bodrum Bodrummm
    • Birinci Sınıf Et ve Balık Restaurant
Re: the database file may be corrupted... hatası
« Reply #1 on: May 24, 2012, 07:53:39 am »
bırden fazla makınemı kulanıyorsunuz acaba ve hatayı tam olarak nerde alıyorsunuz . bıraz acıklayıcı bılgıde yazsaydınız yardım daha kolay olurdu
Dünya Gecirdiğin Fırtınaların Büyüklüğü İle Değil ,Gemiyi Limana Getirip Getirmediğinle İLĞİLENİR . . . ! ! !

enesgungordu

  • Newbie
  • *
  • Posts: 5
Re: the database file may be corrupted... hatası
« Reply #2 on: May 24, 2012, 12:59:01 pm »
----------------------------------------
Timestamp: 23.05.2012 20:26:11

Message: System.Data.DataException: An exception occurred while initializing the database. See the InnerException for details. ---> System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlServerCe.SqlCeException: The database file may be corrupted. Run the repair utility to check the database file. [ Database name = C:\Users\Enes\Documents\SambaPOS2\SambaData2.sdf ]
   at System.Data.SqlServerCe.SqlCeConnection.ProcessResults(Int32 hr)
   at System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
   at System.Data.SqlServerCe.SqlCeConnection.Open()
   at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
   --- End of inner exception stack trace ---
   at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
   at System.Data.EntityClient.EntityConnection.Open()
   at System.Data.Objects.ObjectContext.EnsureConnection()
   at System.Data.Objects.ObjectContext.ExecuteStoreQueryInternal[TElement](String commandText, String entitySetName, MergeOption mergeOption, Object[] parameters)
   at Samba.Persistance.Data.Initializer.InitializeDatabase(SambaContext context)
   at System.Data.Entity.Database.<>c__DisplayClass2`1.<SetInitializerInternal>b__0(DbContext c)
   at System.Data.Entity.Internal.InternalContext.<>c__DisplayClass5.<PerformDatabaseInitialization>b__3()
   at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   --- End of inner exception stack trace ---
   at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
   at System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c)
   at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
   at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
   at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase()
   at System.Data.Entity.Internal.LazyInternalContext.get_ObjectContext()
   at System.Data.Entity.DbContext.System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()
   at Samba.Infrastructure.Data.SQL.EFWorkspace..ctor(CommonDbContext context)
   at Samba.Persistance.Data.WorkspaceFactory.Create()
   at Samba.Presentation.Bootstrapper.InitializeShell()

Category: General

Priority: -1

EventId: 1

Severity: Information

Title:

Machine: ENES-BILGISAYAR

App Domain: Samba.Presentation.exe

ProcessId: 1220

Process Name: C:\Program Files\SambaPOS2\Samba.Presentation.exe

Thread Name:

Win32 ThreadId:2292

Extended Properties:

Mehmet AKYILDIZ

  • Samba Team
  • Sr. Member
  • *****
  • Posts: 299
    • SambaPOS
Re: the database file may be corrupted... hatası
« Reply #3 on: June 04, 2012, 05:48:37 am »
Yine bir SQL Ce sıkıntısı,
Gönderdiğiniz hata mesajı içerisinde;
Quote
The database file may be corrupted. Run the repair utility to check the database file.
deki alanda da yazdığı gibi SQL CE data dosyanızda bozulma olmuş olabilir diye SQL dosyanızı korumaya almış,
Repair yaparak datalarınıza erişebilirsiniz diyor;


Size tavsiyem (her zaman olduğu gibi) SQL Express e geçmeniz, http://doc.sambapos.org/doku.php/tr/tips/sql_ce_veritabanindan_sql_express_edition_a_veri_nasil_tasinir adresini takip ederek datalarınızı SQL Express e aktarın ve orada kullanın.