[Migrated content. Thread originally posted on 15 December 2005]
Hi,
i have a problem using ACU with .NET.
I tried demo program AmortControl supplied with AcuGT 7.0. The program and dll works correctly on local disk (c:\\).
But if i copy runtime (entire folder C:\\Acucorp\\Acucbl700\\AcuGT\\bin) , cobol program (AmortControl.acu) and assembly .NET (AmortControl*.*) on a mapped net disk (\\\\server2003\\DiscoE mapped with j: ) it doesn't work.
A message "CoCreateInstance failed for AcuToNet.IAcuTOnet" is produced.
I tried to register AcuToNet.dll by using Regasm.exe (RegAsm.exe /tlb j:\\wfar\\bin\\acutonet.dll) but this error it was produced:
"Utilit? di registrazione assembly di Microsoft (R) .NET Framework 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. Tutti i diritti riservati.
Errore di RegAsm: Impossibile acquisire i permessi richiesti." (trad: it's impossible to acquire permissions demands).
(P.S: I'm logged with Administator permission)
Someone can help me?
Thanks in advance
Normally the FILE_PATH property allows you to specify where the dlls for you .Net assembly reside. The FILE-PATH parameter to point to assemblies that will not be placed in the end-user's GAC (you must first create an XML file containing the file path), or add the CONSTRUCTOR parameter to instantiate a class. Valid .NET parameters are described in section 3.5.4.10.
You probably need to contact Acucorp technical support as I believe there is an issue with FILE-PATH and the 7.0 distribution.
[Migrated content. Thread originally posted on 15 December 2005]
Hi,
i have a problem using ACU with .NET.
I tried demo program AmortControl supplied with AcuGT 7.0. The program and dll works correctly on local disk (c:\\).
But if i copy runtime (entire folder C:\\Acucorp\\Acucbl700\\AcuGT\\bin) , cobol program (AmortControl.acu) and assembly .NET (AmortControl*.*) on a mapped net disk (\\\\server2003\\DiscoE mapped with j: ) it doesn't work.
A message "CoCreateInstance failed for AcuToNet.IAcuTOnet" is produced.
I tried to register AcuToNet.dll by using Regasm.exe (RegAsm.exe /tlb j:\\wfar\\bin\\acutonet.dll) but this error it was produced:
"Utilit? di registrazione assembly di Microsoft (R) .NET Framework 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. Tutti i diritti riservati.
Errore di RegAsm: Impossibile acquisire i permessi richiesti." (trad: it's impossible to acquire permissions demands).
(P.S: I'm logged with Administator permission)
Someone can help me?
Thanks in advance
Thanks for reply Dilbert,
but ... doesn't work.
I use Acu 7.0 and I read the documentation:
"By default, the runtime looks for .NET assemblies in the end user's GAC. If it can't find the requested assembly in the GAC, it looks in the same directory as the runtime, "wrun32.exe".
Use FILE-PATH when the assembly that the program must access does not reside in the user's GAC or in the same directory as "wrun32.exe". ".
I placed AmortControl.dll and AmortControl.UserControl1.dll in the same directroy as wrun32.exe so the FILE-PATH parameter is not necessary (i think).
However, I tried to do this:
In amortcontrol.cbl i'll add this line:
01 screen-1.
03 ctl-handle, "AmortControl",
NAMESPACE IS "AmortControl",
CLASS-NAME IS "UserControl1",
LINE 1, COL 2,
--> FILE-PATH is "j:\\wfar\\bin\\AmortControl.xml",
and the "j:\\wfar\\bin\\AmortControl.xml" is
encoding="utf-8" ?>
AmortControl
amortcontrol.dll
1.0.1242.11216
neutral
j:\\wfar\\bin\\AmortControl.dll
But ... I have not understood the reason why if i copy/paste the directory j:\\wfar\\bin in c:\\wfar\\bin and exe I execute c:\\wfar\\bin\\wrun32 AmortControl.acu works correctly!
I don't understand ... it seems very simple but I do not succeed to bypass this problem.
Thanks
[Migrated content. Thread originally posted on 15 December 2005]
Hi,
i have a problem using ACU with .NET.
I tried demo program AmortControl supplied with AcuGT 7.0. The program and dll works correctly on local disk (c:\\).
But if i copy runtime (entire folder C:\\Acucorp\\Acucbl700\\AcuGT\\bin) , cobol program (AmortControl.acu) and assembly .NET (AmortControl*.*) on a mapped net disk (\\\\server2003\\DiscoE mapped with j: ) it doesn't work.
A message "CoCreateInstance failed for AcuToNet.IAcuTOnet" is produced.
I tried to register AcuToNet.dll by using Regasm.exe (RegAsm.exe /tlb j:\\wfar\\bin\\acutonet.dll) but this error it was produced:
"Utilit? di registrazione assembly di Microsoft (R) .NET Framework 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. Tutti i diritti riservati.
Errore di RegAsm: Impossibile acquisire i permessi richiesti." (trad: it's impossible to acquire permissions demands).
(P.S: I'm logged with Administator permission)
Someone can help me?
Thanks in advance
Thanks for reply Dilbert,
but ... doesn't work.
I use Acu 7.0 and I read the documentation:
"By default, the runtime looks for .NET assemblies in the end user's GAC. If it can't find the requested assembly in the GAC, it looks in the same directory as the runtime, "wrun32.exe".
Use FILE-PATH when the assembly that the program must access does not reside in the user's GAC or in the same directory as "wrun32.exe". ".
I placed AmortControl.dll and AmortControl.UserControl1.dll in the same directroy as wrun32.exe so the FILE-PATH parameter is not necessary (i think).
However, I tried to do this:
In amortcontrol.cbl i'll add this line:
01 screen-1.
03 ctl-handle, "AmortControl",
NAMESPACE IS "AmortControl",
CLASS-NAME IS "UserControl1",
LINE 1, COL 2,
--> FILE-PATH is "j:\\wfar\\bin\\AmortControl.xml",
and the "j:\\wfar\\bin\\AmortControl.xml" is
encoding="utf-8" ?>
AmortControl
amortcontrol.dll
1.0.1242.11216
neutral
j:\\wfar\\bin\\AmortControl.dll
But ... I have not understood the reason why if i copy/paste the directory j:\\wfar\\bin in c:\\wfar\\bin and exe I execute c:\\wfar\\bin\\wrun32 AmortControl.acu works correctly!
I don't understand ... it seems very simple but I do not succeed to bypass this problem.
Thanks
[Migrated content. Thread originally posted on 15 December 2005]
Hi,
i have a problem using ACU with .NET.
I tried demo program AmortControl supplied with AcuGT 7.0. The program and dll works correctly on local disk (c:\\).
But if i copy runtime (entire folder C:\\Acucorp\\Acucbl700\\AcuGT\\bin) , cobol program (AmortControl.acu) and assembly .NET (AmortControl*.*) on a mapped net disk (\\\\server2003\\DiscoE mapped with j: ) it doesn't work.
A message "CoCreateInstance failed for AcuToNet.IAcuTOnet" is produced.
I tried to register AcuToNet.dll by using Regasm.exe (RegAsm.exe /tlb j:\\wfar\\bin\\acutonet.dll) but this error it was produced:
"Utilit? di registrazione assembly di Microsoft (R) .NET Framework 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. Tutti i diritti riservati.
Errore di RegAsm: Impossibile acquisire i permessi richiesti." (trad: it's impossible to acquire permissions demands).
(P.S: I'm logged with Administator permission)
Someone can help me?
Thanks in advance
You probably need to contact Acucorp technical support as I believe there is an issue with FILE-PATH and the 7.0 distribution.
Ask Acucorp technical support if ecn3321 will solve your issue.
[Migrated content. Thread originally posted on 15 December 2005]
Hi,
i have a problem using ACU with .NET.
I tried demo program AmortControl supplied with AcuGT 7.0. The program and dll works correctly on local disk (c:\\).
But if i copy runtime (entire folder C:\\Acucorp\\Acucbl700\\AcuGT\\bin) , cobol program (AmortControl.acu) and assembly .NET (AmortControl*.*) on a mapped net disk (\\\\server2003\\DiscoE mapped with j: ) it doesn't work.
A message "CoCreateInstance failed for AcuToNet.IAcuTOnet" is produced.
I tried to register AcuToNet.dll by using Regasm.exe (RegAsm.exe /tlb j:\\wfar\\bin\\acutonet.dll) but this error it was produced:
"Utilit? di registrazione assembly di Microsoft (R) .NET Framework 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. Tutti i diritti riservati.
Errore di RegAsm: Impossibile acquisire i permessi richiesti." (trad: it's impossible to acquire permissions demands).
(P.S: I'm logged with Administator permission)
Someone can help me?
Thanks in advance
I Have found finally!
In the configuration of .NET i have increased reliability of the assembly j:\\wfar\\bin\\AcuToNet.dll. (j: is a network drive)
So works correctly.
P.S. Dilbert: ECN-3321 talks about a MAV using FILE-PATH in .NET program Change.
it was not my case. I have assembly in the same directory the
Thanks for all.
[Migrated content. Thread originally posted on 15 December 2005]
Hi,
i have a problem using ACU with .NET.
I tried demo program AmortControl supplied with AcuGT 7.0. The program and dll works correctly on local disk (c:\\).
But if i copy runtime (entire folder C:\\Acucorp\\Acucbl700\\AcuGT\\bin) , cobol program (AmortControl.acu) and assembly .NET (AmortControl*.*) on a mapped net disk (\\\\server2003\\DiscoE mapped with j: ) it doesn't work.
A message "CoCreateInstance failed for AcuToNet.IAcuTOnet" is produced.
I tried to register AcuToNet.dll by using Regasm.exe (RegAsm.exe /tlb j:\\wfar\\bin\\acutonet.dll) but this error it was produced:
"Utilit? di registrazione assembly di Microsoft (R) .NET Framework 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. Tutti i diritti riservati.
Errore di RegAsm: Impossibile acquisire i permessi richiesti." (trad: it's impossible to acquire permissions demands).
(P.S: I'm logged with Administator permission)
Someone can help me?
Thanks in advance
I Have found finally!
In the configuration of .NET i have increased reliability of the assembly j:\\wfar\\bin\\AcuToNet.dll. (j: is a network drive)
So works correctly.
P.S. Dilbert: ECN-3321 talks about a MAV using FILE-PATH in .NET program Change.
it was not my case. I have assembly in the same directory the
Thanks for all.