Microsoft KB Archive/839519

From BetaArchive Wiki
Knowledge Base


You receive an "Unhandled Exception" error when you deploy a program in Office Live Communications Server 2003

Article ID: 839519

Article Last Modified on 3/31/2004



APPLIES TO

  • Microsoft Office Live Communications Server 2003




SYMPTOMS

When you deploy a program in Microsoft Office Live Communications Server 2003, you may receive the following error message:

Unhandled Exception: System.IO.FileNotFoundException: File or assembly name ServerAgent, or one of its dependencies, was not found.

CAUSE

This problem may occur if the ServerAgent.dll file is not installed in the global assembly cache. If your program and the ServerAgent.dll file are not installed in the same folder, the ServerAgent.dll file cannot be found.

RESOLUTION

To resolve this problem, create a configuration file that points to the ServerAgent.dll file, and put this file in the same folder as your program. To do this, follow these steps:

  1. Create a file that contains the following:

    <configuration>
    
       <runtime>
    
          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    
             <dependentAssembly>
    
                <assemblyIdentity name="ServerAgent"
    
                                  publicKeyToken="31bf3856ad364e35"
    
                                  culture="neutral" />
    
                <codeBase version="1.0.0.0"
    
                    href="LCS installation folder\ServerAgent.dll"/>
    
             </dependentAssembly>
    
          </assemblyBinding>
    
       </runtime>

    Note For LCS installation folder, use the full path of the ServerAgent.dll file that was installed with the server. For example, if the full path of the ServerAgent.dll file is C:\Program Files\Microsoft LC\Server\ServerAgent.dll, use:

    href="C:\Program Files\Microsoft LC\Server\ServerAgent.dll"

  2. Save the file as filename.extension.config in the same folder as your program.

    For example, if the name of the program file is MyApp.exe, name the file MyApp.exe.config, and save the file in the save folder as MyApp.exe.



Additional query words: ServerAgent dependencies deploy

Keywords: kbprb KB839519