Hi,
I use a .NET DLL in my centura program.
In some machines when I invoke a method return error "Unable to locate object by id : 11331267889.
In others machines works!!!
Any ideas?
Thank in advanvancing
Enrico
.NET DLL error Unable to locate object by Id
-
- Founder/Site Admin
- Posts: 1188
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
.NET DLL error Unable to locate object by Id
Are you using GAIL or ActiveX to communicate with the component?
When you created ActiveX library from the component, make sure when generating the library you use Generate by Name instead of Generate by Dispatch ID.
When you created ActiveX library from the component, make sure when generating the library you use Generate by Name instead of Generate by Dispatch ID.
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
.NET DLL error Unable to locate object by Id
Hi,
thank you
Where I can find "Generate by Name" option? I am in 61 win32. In .NET Explorer I select assembly file/application library(APL) and then I select my class and output path, but I can not find the option.
Now if I copy SalCDK.dll in program directory my program works.
How can I redistribute my .NET DLL with TD Deploy?
thank you
Where I can find "Generate by Name" option? I am in 61 win32. In .NET Explorer I select assembly file/application library(APL) and then I select my class and output path, but I can not find the option.
Now if I copy SalCDK.dll in program directory my program works.
How can I redistribute my .NET DLL with TD Deploy?
-
- Founder/Site Admin
- Posts: 1188
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
.NET DLL error Unable to locate object by Id
So you are using the .NET Explorer. In that case you don't have this option.
The generate by name or id is part of the ActiveX Explorer.
The generate by name or id is part of the ActiveX Explorer.
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Re: .NET DLL error Unable to locate object by Id
Hi all,
I know its a long time ago, but perhaps someone else has the same problems and benefits from the answer.
This error indicates, that the runtime can't load the .NET assembly. We experienced a few possible reasons:
- Deployment not installed on the machine, or wrong version of deployment installed
- .NET Framework not installed, or wrong version of .NET Framework installed
- .NET assembly doesn't reside in the directory, where the call comes from (we put it in the runtime directory with all exe files - that works well)
- very mean: If you copy the dll to the runtime, then check via "Rightclick" => "Properties", if Windows blocked the file because its copied from an unsave destination (happens e.g. if you drag and drop the files out of a zip file). You have to click the "unblock" Button in the Properties Dialog, afterwards the assembly can be loaded
I'm sure there are more possible reasons, because its a quite generic error.
Regards,
Holger
I know its a long time ago, but perhaps someone else has the same problems and benefits from the answer.
This error indicates, that the runtime can't load the .NET assembly. We experienced a few possible reasons:
- Deployment not installed on the machine, or wrong version of deployment installed
- .NET Framework not installed, or wrong version of .NET Framework installed
- .NET assembly doesn't reside in the directory, where the call comes from (we put it in the runtime directory with all exe files - that works well)
- very mean: If you copy the dll to the runtime, then check via "Rightclick" => "Properties", if Windows blocked the file because its copied from an unsave destination (happens e.g. if you drag and drop the files out of a zip file). You have to click the "unblock" Button in the Properties Dialog, afterwards the assembly can be loaded
I'm sure there are more possible reasons, because its a quite generic error.
Regards,
Holger
Who is online
Users browsing this forum: [Ccbot] and 0 guests