Results 1 to 4 of 4

Thread: How to diagnose the cause of an icebox error?

  1. #1
    Gravitas is offline Registered User
    Name: Shane Tolmie
    Organization: NeuralFutures LLC
    Project: Server modules in C++, C# and Java, to client.
    Join Date
    Feb 2011
    Posts
    40

    How to diagnose the cause of an icebox error?

    Hi,

    If I run a server in console mode, it works fine.

    However, if I compile the server in .dll mode, and add the necessary start/stop classes as per the demo in "Ice-3.4.1-demos\democs\IceBox\hello", it gives the following cryptic crossword error. How would I even begin to diagnose the cause of this error?

    Code:
    T:\GRIbacktest\Cs\WCF service for GRI\PhiData\PhiData.Ivolatility>iceboxnet.exe --Ice.Config=config.icebox
    !! 3/8/2011 16:14:48:904 iceboxnet.exe: error: IceBox.FailureException
           reason = "ServiceManager: unable to load service 'serverReadDb.dll:PhiDataIvolatilityReadDbServiceI': unable to load assembly: serverReadDb.dll"
          at IceBox.ServiceManagerI.startService(String service, String entryPoint, String[] args)
          at IceBox.ServiceManagerI.run()
       Caused by: System.IO.FileNotFoundException: Could not load file or assembly 'serverReadDb.dll' or one of its dependencies. The system cannot find the file sp
    ecified.
          at IceBox.ServiceManagerI.startService(String service, String entryPoint, String[] args)
    My environment:
    - v3.4.1 of ICE
    - Windows 7 x64
    - The "hello" demo, mentioned above, works fine (so paths are set up properly).

  2. #2
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    Hi,

    Do you have a file named serverReadDb.dll in the directory where you run iceboxnet.exe? The dependencies for this dll also need to be in the same directory, or alternatively installed in GAC.

    If your service targets .NET 4.0 don't forget to add the configuration file for iceboxnet.exe to run with .NET 4.0 as explained in previous post

  3. #3
    Gravitas is offline Registered User
    Name: Shane Tolmie
    Organization: NeuralFutures LLC
    Project: Server modules in C++, C# and Java, to client.
    Join Date
    Feb 2011
    Posts
    40
    Found the problem: the .dll has to be compiled for "All CPU". If its compiled for "x32", it won't work.

    Would be very nice to have an error message that gives some meaningful feedback - that took me 4 hours to fix, I was almost about to give up and switch to another architecture that didn't involve ICE
    Last edited by Gravitas; 03-08-2011 at 12:22 PM.

  4. #4
    Gravitas is offline Registered User
    Name: Shane Tolmie
    Organization: NeuralFutures LLC
    Project: Server modules in C++, C# and Java, to client.
    Join Date
    Feb 2011
    Posts
    40
    Quote Originally Posted by xdm View Post
    Hi,

    Do you have a file named serverReadDb.dll in the directory where you run iceboxnet.exe? The dependencies for this dll also need to be in the same directory, or alternatively installed in GAC.

    If your service targets .NET 4.0 don't forget to add the configuration file for iceboxnet.exe to run with .NET 4.0 as explained in previous post
    Thank you for your time to reply to my initial post, everything is working fine now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 04-11-2004, 09:12 PM
  2. Icebox Freeze service error
    By xdm in forum Help Center
    Replies: 1
    Last Post: 03-07-2004, 10:19 AM
  3. Replies: 2
    Last Post: 09-03-2003, 02:49 AM
  4. Compile error on Icebox
    By amrufon in forum Help Center
    Replies: 7
    Last Post: 05-09-2003, 01:24 AM
  5. Linker error while building IceBox
    By georgeal in forum Help Center
    Replies: 2
    Last Post: 03-08-2003, 09:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •