Skip to main content

[archive] Can not load assembly wrunnet, incorrect format

  • July 2, 2009
  • 14 replies
  • 0 views

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -

14 replies

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
Have you tried to run these commands from the Acu bin directory:
.\\regsvr32 acutonet.dll
.\\Marshal /register

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
Have you tried to run these commands from the Acu bin directory:
.\\regsvr32 acutonet.dll
.\\Marshal /register

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
Have you tried to run these commands from the Acu bin directory:
.\\regsvr32 acutonet.dll
.\\Marshal /register

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
Have you tried to run these commands from the Acu bin directory:
.\\regsvr32 acutonet.dll
.\\Marshal /register


That second command should actually be:
.\\Marshal /regserver

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
Have you tried to run these commands from the Acu bin directory:
.\\regsvr32 acutonet.dll
.\\Marshal /register


That second command should actually be:
.\\Marshal /regserver

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
Have you tried to run these commands from the Acu bin directory:
.\\regsvr32 acutonet.dll
.\\Marshal /register


That second command should actually be:
.\\Marshal /regserver

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
I stand corrected :-)

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
Thanks for your help.

Sorry, I do not seem to be able to register the acutonet.dll (the module was loaded but the entry point DllRegisterServer was not found). This happens with Acucbl v8.1 on a Vista sp2 box. The marshall command is executed without any complaints. I am getting the exact same error message. Note also that I am trying to call an ACUCOBOL from a .NET v2 or v3.5 application.
If you have any other idea I could try, let me know.
Thanks,
- Peter -

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
Thanks for your help.

Sorry, I do not seem to be able to register the acutonet.dll (the module was loaded but the entry point DllRegisterServer was not found). This happens with Acucbl v8.1 on a Vista sp2 box. The marshall command is executed without any complaints. I am getting the exact same error message. Note also that I am trying to call an ACUCOBOL from a .NET v2 or v3.5 application.
If you have any other idea I could try, let me know.
Thanks,
- Peter -

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
Thanks for your help.

Sorry, I do not seem to be able to register the acutonet.dll (the module was loaded but the entry point DllRegisterServer was not found). This happens with Acucbl v8.1 on a Vista sp2 box. The marshall command is executed without any complaints. I am getting the exact same error message. Note also that I am trying to call an ACUCOBOL from a .NET v2 or v3.5 application.
If you have any other idea I could try, let me know.
Thanks,
- Peter -

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
I see something else. When I open the DLL wrunnet.dll in "Dependency Walker" utility, it looks like the DLL is for CPU x64. Than the error message would be in line with what is often experienced. I am working on a 32 bit Vista with a 32 bit AcuCobol. Perhaps the DLL is indeed 64 bit and therefore causes an "invalid image" when I try to run it. Compiling my .NET application on 64 bit works, but I can't run it.
Does anybody have a wrunnet.dll for 32 bit that is suitable for AcuCOBOL v8.1 or can confirm this theory ?
Thanks,
- Peter -

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
I see something else. When I open the DLL wrunnet.dll in "Dependency Walker" utility, it looks like the DLL is for CPU x64. Than the error message would be in line with what is often experienced. I am working on a 32 bit Vista with a 32 bit AcuCobol. Perhaps the DLL is indeed 64 bit and therefore causes an "invalid image" when I try to run it. Compiling my .NET application on 64 bit works, but I can't run it.
Does anybody have a wrunnet.dll for 32 bit that is suitable for AcuCOBOL v8.1 or can confirm this theory ?
Thanks,
- Peter -

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
I see something else. When I open the DLL wrunnet.dll in "Dependency Walker" utility, it looks like the DLL is for CPU x64. Than the error message would be in line with what is often experienced. I am working on a 32 bit Vista with a 32 bit AcuCobol. Perhaps the DLL is indeed 64 bit and therefore causes an "invalid image" when I try to run it. Compiling my .NET application on 64 bit works, but I can't run it.
Does anybody have a wrunnet.dll for 32 bit that is suitable for AcuCOBOL v8.1 or can confirm this theory ?
Thanks,
- Peter -

[Migrated content. Thread originally posted on 01 July 2009]

Hi, I am trying to run the Acucobol sample application wrunnetutil in which the CVM object is instantiated to run an ACUCOBOL program. However, while the wrunnet.dll seems to be a valid .NET 2.0 DLL, I get the error message "Could not load file or assembly 'wrunnet, version 8.1.0.0,.... or one of it's dependencies. An attempt was made to load a program with an incorrect format.". Exactly the same as described here : http://www.acucorp.com/support/supported/customer_forum/showthread.php?p=6437 (but I don't understand the solution). It happens in a pure 32 bit environment on both XP and Vista and using Acucobol 8.1 and VS2008 or VS2005. Does anybody has an idea what obvious thing I am doing wrong ?
Thanks,
- Peter -
If you suspect you have gotten the wrong files, you should contact technical support for assistance to ensure integrity of your files. Inquiring others for individual files may just generate more trouble.