Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Folks,

We are having a strange problem in calling following WCF webservice : EventService
The same service works fine on different domain on same server as below:
EventService

The error says that it couldn't find the assembly reference while the required DLL is already on the server's C drive and also in the bin folder of application. After trying many links from Google no success in hand.

Please have a look st the above link and help.

Thanks in advance.
Posted
Comments
E.F. Nijboer 11-Dec-14 9:38am    
Could you provide more info (like the actual error you get)?
Member 11303379 11-Dec-14 23:26pm    
Below is the error we are getting :

"Server Error in '/app' Application.

Could not load file or assembly 'System.DirectoryServices.Protocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.DirectoryServices.Protocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.DirectoryServices.Protocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]."
E.F. Nijboer 12-Dec-14 4:26am    
Are you sure the exact same version is on the machine?
Member 11303379 12-Dec-14 7:09am    
Yes. Only domain is different.
E.F. Nijboer 12-Dec-14 7:29am    
Are you also sure there are no different versions on the machine? If System.DirectoryServices.Protocols.dll can also be found in the GAC or another place the CLR looks, you get an error if it is not exactly the same version.
GAC dir: %windir%\assembly

1 solution

We have solved the issue by giving reference to the DLL of the bin folder.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900