Thursday, February 09, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: she
New Today New Today: 15
New Yesterday New Yesterday: 26
User Count Overall: 20578

People Online People Online:
Visitors Visitors: 8
Members Members: 1
Total Total: 9

Online Now Online Now:
01: rlake

ClearCanvas Community Forums

datastore sql exception while opening workstation
Last Post 2010-08-26 01:14 AM by Kmilo. 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ozahan
Basic Member
Basic Member
Posts:25

--
2009-08-24 07:49 AM  

Hi,

I have prepared a custom installer and tested it in 2 vista and 2 xp computers. There is no problem with the xp machines, but one of the vista machines gives an exception saying, "My Studies server can not be queried. Error occured while querying the study root." After this ClearCanvas closes with a "ClearCanvas has stopped working and needs to close" message. And the log during this error is as follows:

Failed to retrieve number of studies from data store.
Turcica.Dicom.DataStore.DataStoreException: An error occurred while attempting to get the number of studies in the data store. ---> NHibernate.ADOException: cannot open connection ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at System.Data.SqlServerCe.NativeMethods.DllAddRef()
   at System.Data.SqlServerCe.SqlCeConnection..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at NHibernate.Driver.ReflectionBasedDriver.CreateConnection()
   at NHibernate.Connection.DriverConnectionProvider.GetConnection()
   at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
   --- End of inner exception stack trace ---
   at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
   at NHibernate.Impl.ConnectionManager.GetConnection()
   at NHibernate.Impl.SessionImpl.get_Connection()
   at NHibernate.Transaction.AdoTransaction.Begin(IsolationLevel isolationLevel)
   at Turcica.Dicom.DataStore.DataAccessLayer.SessionManager.BeginReadTransaction()
   at Turcica.Dicom.DataStore.DataAccessLayer.DataStoreReader.GetStudyCount()
   --- End of inner exception stack trace ---
   at Turcica.Dicom.DataStore.DataAccessLayer.DataStoreReader.GetStudyCount()
   at Turcica.ImageViewer.Shreds.DiskspaceManager.DiskspaceManagerProcessor.CheckUsage(Boolean log, Int32 maxWaitMilliseconds)
2009-08-21 19:29:42,741 [2] FATAL - Error occured

Fatal error - unhandled exception in running Shred; ShredHost must terminate
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at System.Data.SqlServerCe.NativeMethods.SafeRelease(IntPtr& ppUnknown)
   at System.Data.SqlServerCe.SqlCeConnection.ReleaseNativeInterfaces()
   at System.Data.SqlServerCe.SqlCeConnection.Dispose(Boolean disposing)
   at System.Data.SqlServerCe.SqlCeConnection.Finalize()

I have checked the permissions of the dicom_datastore folder, checked if there were any relative path definitions, but everything looks OK. I read a suggestion about reinstalling the distributable package and moving the sqlce* dlls to the root directory, but it did not solve the problem either. I feel like sth is wrong with my sql libraries but I can not find why.

Any suggestions?

Thanks,

ozahan

stewart
Senior Member
Senior Member
Posts:2032

--
2009-08-31 03:38 PM  
Hi Ozahan, is the problem machine 64-bit? If so, there is a different set of SQL CE binaries that you must use.

Hope this helps,
Stewart
Real-time support available to Clinical Edition and Team Edition customers
ozahan
Basic Member
Basic Member
Posts:25

--
2009-09-05 07:24 AM  
Thanks Stewart,

I compiled the project for 64-bit and used 64-bit sql CE libraries; everything is OK now.

ozahan
Kmilo
New Member
New Member
Posts:5

--
2010-08-26 01:14 AM  

excuse me when you say used 64-bit CE libraries could you tell me which steps di you perform? I am asking this because I'm starting from scracth and I 'm getting also this error too

You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.