Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / September 2006

Tip: Looking for answers? Try searching our database.

File or assembly name <name>, or one of its dependencies, was not found.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Seph - 02 Sep 2006 10:14 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.