Hi,
I am writing a demo system of applications that uses all aspects of
component services and I am having some problems with my
ServicedComponents\COM+ aspect.
The Error Is:
File or assembly name CompanyNameDataObject, or one of its
dependencies, was not found.
System.IO.FileNotFoundException: File or assembly name
CompanyNameDataObject, or one of its dependencies, was not found.
File name: "CompanyNameDataObject"
at
CompanyName.CompanySystem.ServicedComponents.Customer.GetLikeCustomerName(String
Name)
at
CompanyName.CompanySystem.WindowsClient.CustomerServicesClient.FormCustomerSearch.LoadListView(String
Name) in D:\Development\Source Code\Project\Company
Name\CompanyNameCustomerServicesClient\FormCustomerSearch.vb:line 325
=== Pre-bind state information ===
LOG: DisplayName = CompanyNameDataObject, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=5a2353b02059d274
(Fully-specified)
LOG: Appbase = D:\Development\Source Code\Project\Company
Name\CompanyNameCustomerServicesClient\bin\
LOG: Initial PrivatePath = NULL
Calling assembly : CompanyNameCOMServer, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=2efd79254f927621.
===
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: CompanyNameDataObject, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=5a2353b02059d274
LOG: Attempting download of new URL file:///D:/Development/Source
Code/Project/Company
Name/CompanyNameCustomerServicesClient/bin/CompanyNameDataObject.DLL.
LOG: Attempting download of new URL file:///D:/Development/Source
Code/Project/Company
Name/CompanyNameCustomerServicesClient/bin/CompanyNameDataObject/CompanyNameDataObject.DLL.
LOG: Attempting download of new URL file:///D:/Development/Source
Code/Project/Company
Name/CompanyNameCustomerServicesClient/bin/CompanyNameDataObject.EXE.
LOG: Attempting download of new URL file:///D:/Development/Source
Code/Project/Company
Name/CompanyNameCustomerServicesClient/bin/CompanyNameDataObject/CompanyNameDataObject.EXE.
The Assembly Setup:
CLIENT
(GAC) CompanyNameGenericLibrary.DLL
(Dependency:None)
(GAC/PROXY) CompanyNameCOMServices.DLL
(Client) CompanyNameCustomerServicesClient.EXE
(Dependency: CompanyNameGenericLibrary.DLL)
(Dependency: CompanyNameCOMServices.DLL)
SERVER
(GAC) CompanyNameGenericLibrary.DLL
(Dependency: None)
(GAC) CompanyNameDataObject.DLL
(Dependency: CompanyNameGenericLibrary.DLL)
(GAC/COM+) CompanyNameCOMServices.DLL
(Dependency: CompanyNameDataObject.DLL)
As you can see only CompanyNameCOMServices.DLL requires
CompanyNameDataObject.DLL referenced on the server, yet the error is
asking the client to have CompanyNameDataObject.DLL installed on the
client GAC (which works when installed) but I do not want to expose
CompanyNameDataObject.DLL on the client, I wish and expected it to
remain behind the COM+ wall.
Any ideas ?
Thanks.
Gordon Newell - 06 Sep 2006 09:42 GMT
I encountered the same problem last week.
The dependancy of one of my services components, which is installed in the
GAC needed to be copied to the client machine.
As a point of note the files does not need to go into the client GAC, the
application bin folder works too.
What really threw me is that it used to work without being on the client
machines. I had to update the dependant component on the application
servers last week and then it requiredthe component to be copied to the
clients.
I would be interested to know what has changed to introduce this requirement
too.
> Hi,
>
[quoted text clipped - 80 lines]
>
> Thanks.