Do you have a question?

First Name:
Surname:
Email:
Phone:
Message:
Get Audio Code

Image Server 2.0 source code
Last Post 23 May 2012 07:15 AM by Tyagraj S. 8 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Alex LUser is Offline
New Member
New Member
Posts:6

--
29 Sep 2011 04:36 AM  

Hello,

I installed Image Server 2.0, cloned repository and sucessfully built the code according to the instructions.

Then I replaced dlls and ClearCanvas.ImageServer.ShredHostService.exe in the installation folder with the built files.

When i run ClearCanvas.ImageServer.ShredHostService I get errors.

For example:

Failed to process assembly ClearCanvas.ImageServer.Servrices.WorkQueue, Version 0.90.0.0, Culture=neutral, PublicKeyToken=null with the following exception(s): Method "Initialize" not found...

After installing ImageServer ClearCanvas.ImageServer.Servrices.WorkQueue.dll version number is 2.0.12655.37768 and this is confusing me. 

Could you please tell, what am I missing? Is it possible to get exactly the same sources which were used for building Image Server 2.0?

 

 

MartinUser is Offline
Basic Member
Basic Member
Posts:265

--
29 Sep 2011 09:06 AM  

As far as i know the version number is replaced by the internal build script that ClearCanvas uses to build the ImageServer. However the version number should not be responsible for your error message. It should be possible to build and run the ImageServer 2.0 from source - maybe you could post the complete exception message and stack trace that you got.

Steve WranovskyUser is Offline
Veteran Member
Veteran Member
Posts:2107

--
29 Sep 2011 10:33 PM  
As Martin mentioned, the build number for each of the assemblies is updated by our build scripts. So, you'd have to do something similar. You mentioned just copying the files related to the ShredHostService. The issue may be that you haven't replaced all of the assemblies, and some of the original assemblies are there and are expecting to load the original build's version of the files. I'd suggest either updating the version of the new assemblies, or replacing all of the assemblies in the platform & common directories.

Steve
Alex LUser is Offline
New Member
New Member
Posts:6

--
05 Oct 2011 04:06 AM  

Thank you for your support, now ShredHostService.exe starts fine, but DICOM echo fails.


2011-10-05 13:24:48,714 [Main thread] INFO  - Starting Server Shred Host Service...
2011-10-05 13:24:50,308 [Main thread] WARN  - Time provider not found - defaulting to local machine time.
2011-10-05 13:24:50,412 [Main thread] INFO  - Starting up in AppDomain [ClearCanvas.ImageServer.ShredHostService.exe]
2011-10-05 13:24:52,323 [ArchivingServer] INFO  - ClearCanvas.ImageServer.Services.Archiving.Shreds.ArchivingShredExtension[ClearCanvas.ImageServer.Services.Archiving.Shreds.ArchivingShredExtension]: Start invoked
2011-10-05 13:24:52,812 [Dicom Server] INFO  - ClearCanvas.ImageServer.Services.Dicom.Shreds
.DicomServerExtension[ClearCanvas.ImageServer.Services.Dicom.Shreds.DicomServerExtension]: Start invoked
2011-10-05 13:24:53,370 [Study header Streaming Server] INFO  - Starting Study header Streaming Server using basic Http binding
2011-10-05 13:24:53,542 [ServiceLock Server] INFO  - ClearCanvas.ImageServer.Services.ServiceLock.Shreds.
ServiceLockServerExtension[ClearCanvas.ImageServer.Services.ServiceLock.Shreds.ServiceLockServerExtension]: Start invoked
2011-10-05 13:24:53,592 [Study header Streaming Server] INFO  - Starting WCF Shred HeaderStreaming...
2011-10-05 13:24:54,092 [Image Streaming Server] INFO  - Started listening at http://+:1000/wado/
2011-10-05 13:24:55,015 [Work Queue Server] INFO  - ClearCanvas.ImageServer.Services.WorkQueue.Shreds.WorkQueueServerExtension[ClearCanvas.ImageServer.Services.WorkQueue.Shreds.WorkQueueServerExtension]: Start invoked
2011-10-05 13:24:55,909 [Study header Streaming Server] INFO  - WCF Shred HeaderStreaming is listening at System.ServiceModel.Description.ServiceEndpoint.
2011-10-05 13:24:55,936 [Usage Tracking Service] WARN  - Time provider not found - defaulting to local machine time.
2011-10-05 13:24:56,136 [DICOM Service Manager:13] INFO  - Starting to listen with AE CANVAS1 on port 0.0.0.0:104
2011-10-05 13:24:56,238 [DICOM Service Manager:13] WARN  - Time provider not found - defaulting to local machine time.
2011-10-05 13:24:56,617 [Remote ImageServer Services Server] INFO  - Mounting IProductVerificationService on URI http://localhost:9998/ClearCanvas.ImageServer.Common.ServiceModel.IProductVerificationService
2011-10-05 13:24:57,044 [ServiceLock:16] INFO  - ServiceLock Processor is running
2011-10-05 13:24:57,109 [Remote ImageServer Services Server] INFO  - Mounting IAlertService on URI http://localhost:9998/ClearCanvas.ImageServer.Common.ServiceModel.IAlertService
2011-10-05 13:24:57,129 [Remote ImageServer Services Server] INFO  - Mounting IFilesystemService on URI http://localhost:9998/ClearCanvas.ImageServer.Common.ServiceModel.IFilesystemService
2011-10-05 13:24:57,134 [ServiceLock Pool:18] WARN  - Time provider not found - defaulting to local machine time.
2011-10-05 13:24:57,165 [ServiceLock Pool:18] INFO  - Filesystem Status:
    Secondary FileSystem : Enabled | Online | Readable | Writable | 125,18 GB Available
    Primary Filesystem : Enabled | Online | Readable | Writable | 292,28 GB Available

2011-10-05 13:24:57,589 [Work Queue Server] WARN  - Time provider not found - defaulting to local machine time.
2011-10-05 13:24:57,668 [WorkQueue:22] INFO  - Work Queue Processor running...

2011-10-05 13:25:02,358 [DicomServer: 172.16.28.181 [29]] ERROR - Exception thrown

Unexpected User exception, description: Unexpected exception on OnReceiveAssociateRequest or StartDelegate
System.TypeInitializationException: The type initializer for 'ClearCanvas.ImageServer.Model.DeviceTypeEnum' threw an exception. ---> ClearCanvas.Enterprise.Core.PersistenceException: Unknown DeviceTypeEnum PriorsServer
   at ClearCanvas.ImageServer.Enterprise.ServerEnumHelper`2.GetEnum(String lookup)
   at ClearCanvas.ImageServer.Model.DeviceTypeEnum.GetEnum(String lookup)
   at ClearCanvas.ImageServer.Model.DeviceTypeEnum..cctor()
   --- End of inner exception stack trace ---
   at ClearCanvas.ImageServer.Model.DeviceTypeEnum.get_Workstation()
   at ClearCanvas.ImageServer.Services.
Dicom.DeviceManager.LookupDevice(ServerPartition partition, AssociationParameters association, Boolean& isNew)
   at ClearCanvas.ImageServer.Services.
Dicom.AssociationVerifier.Verify(DicomScpContext context, ServerAssociationParameters assocParms, DicomRejectResult& result, DicomRejectReason& reason)
   at ClearCanvas.Dicom.Network.Scp.DicomScpHandler`1.ClearCanvas.Dicom.Network.IDicomServerHandler.OnReceiveAssociateRequest(DicomServer server, ServerAssociationParameters association)
   at ClearCanvas.Dicom.Network.DicomServer.
OnReceiveAssociateRequest(ServerAssociationParameters association)
2011-10-05 13:25:02,500 [DicomServer: 172.16.28.181 [29]] ERROR - Unexpectedly received OnNetworkError callback from WSCANVAS to CANVAS1.  Aborting association.
2011-10-05 13:25:02,526 [DicomServer: 172.16.28.181 [29]] ERROR - Association incorrectly not accepted or rejected, aborting.
2011-10-05 13:25:02,539 [DicomServer: 172.16.28.181 [29]] ERROR - Unexpected error processing PDU.  Aborting Association from WSCANVAS to CANVAS1
2011-10-05 13:25:02,557 [DicomServer: 172.16.28.181 [29]] ERROR - Unexpectedly received OnNetworkError callback from WSCANVAS to CANVAS1.  Aborting association.



 

Alex LUser is Offline
New Member
New Member
Posts:6

--
10 Oct 2011 08:57 AM  
It seems that the problem was in the database.
I replaced database installed by Image Server with the database created by scripts (https://sourcebrowser.clearcanvas.ca/flosscode/Xian/ImageServer/Model/SqlServer/Scripts ) and it solved the problem.
Steve WranovskyUser is Offline
Veteran Member
Veteran Member
Posts:2107

--
14 Oct 2011 10:31 AM  
I'd assume you had a mismatch with the database, which you've already discovered. The PriorsServer DeviceTypeEnum was added when we did development of the Webstation, and wouldn't be in the official 2.0 version last released.

Steve
bingerUser is Offline
New Member
New Member
Posts:1

--
24 Oct 2011 11:18 PM  

hello, would you tell me how to get Image Server 2.0 source code? what is the username and password?

JasperUser is Offline
Advanced Member
Advanced Member
Posts:525

--
25 Oct 2011 07:55 AM  
Tyagraj SUser is Offline
New Member
New Member
Posts:13

--
23 May 2012 07:15 AM  

Hi bender, did u find any difficulty like 'failed to access IIS metabase' during installation of image server2.0? Could you help me to come out of this?

Thank you

You are not authorized to post a reply.

Active Forums 4.1