none
WCF/Window 2008 hpc cluster error: "Could not load file or assembly file or one of its dependencies" RRS feed

  • Question

  • Hi,

    I am having a problem to run a WCF service in Window 2008 hpc server cluster. This service is written in c++ and is a 32bit application. I can successfully run this service in a selfhost method. Both release build and debug build have the same error below in window 2008 hpc cluster.  Any suggestions is highly appreciated.

    Microsoft.Hpc.HpcServiceHosting Error: 0 : Service Host Job Id = 60, Task System Id = 197, Running on Cluster01
    [Main]: Failed to start the service WCFServer.
        DateTime=2009-07-30T21:53:13.5442056Z
    Microsoft.Hpc.HpcServiceHosting Error: 0 : Service Host Job Id = 60, Task System Id = 197, Running on Cluster01
    System.BadImageFormatException: Could not load file or assembly 'file:///c:\Services\WCFServer.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    File name: 'file:///c:\Services\WCFServer.dll'
       at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
       at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.LoadFrom(String assemblyFile)
       at Microsoft.Hpc.CcpServiceHosting.CcpServiceHostWrapper.Open()
       at Microsoft.Hpc.CcpServiceHosting.CcpServiceHostWrapper.Open()
       at Microsoft.Hpc.CcpServiceHosting.Program.Main(String[] args)


    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
     DateTime=2009-07-30T21:53:13.5442056Z

     

     

     

    • Moved by parmita mehtaModerator Wednesday, August 19, 2009 2:54 AM (From:Windows HPC Server Deployment, Management, and Administration)
    Tuesday, August 11, 2009 1:58 AM

Answers

  • Hi,

    By default, all service run on HPC is launched in x64 only. And C++/CLI on x64 is not supported yet by WCF.

    If you are okay to run your codes in 32-bit mode, you can force the service platform to x86 in your service registration file and see if it works for you.

    -yiding
    Wednesday, August 19, 2009 3:08 AM

All replies

  • Hi,

    By default, all service run on HPC is launched in x64 only. And C++/CLI on x64 is not supported yet by WCF.

    If you are okay to run your codes in 32-bit mode, you can force the service platform to x86 in your service registration file and see if it works for you.

    -yiding
    Wednesday, August 19, 2009 3:08 AM
  • Hi,
    Thanks. That is the same solution we found.

    Tuesday, September 1, 2009 12:32 AM