.NET DLL error Unable to locate object by Id

Discussion forum about all things Team Developer 5.x and 6.x
e.russo
Italy
Posts: 38
Joined: 16 Feb 2018, 14:02
Location: Turin, Italy

.NET DLL error Unable to locate object by Id

Post by e.russo » 11 May 2018, 09:37

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

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1088
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

.NET DLL error Unable to locate object by Id

Post by Dave Rabelink » 14 May 2018, 07:17

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.
Regards,
Dave Rabelink

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

e.russo
Italy
Posts: 38
Joined: 16 Feb 2018, 14:02
Location: Turin, Italy

.NET DLL error Unable to locate object by Id

Post by e.russo » 14 May 2018, 09:23

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?

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1088
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

.NET DLL error Unable to locate object by Id

Post by Dave Rabelink » 14 May 2018, 10:37

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.
Regards,
Dave Rabelink

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

Holger
Germany
Posts: 9
Joined: 07 Mar 2018, 13:43
Location: Oberkirch, Germany

Re: .NET DLL error Unable to locate object by Id

Post by Holger » 17 Oct 2018, 08:42

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

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests