I am trying to build a Remoting application and I am having some problems with that I 
believe may be in the config files.  I built the server and it seemed to work 
properly.  I then added a couple of new classes that I wanted to in a library that is 
referenced both by the Server and the Client.  There are three classes that are 
reference in the library.  Only one of them will work and the other two try to run 
locally on the Client.  Two of the classes are the exact same code only differing in 
the class name.  I did this for a test because I can't get my main class(object) to 
work properly.  I will include the config files.  I have moved everything around 
trying everything I could...  The only one that works properly is the 
"ImageGrabber.ImageGrabber".

Thanks for any help.....


<configuration>
    <system.runtime.remoting>
        <application name="IServer">
            <service>
                 <activated type="ImageGrabber.IGrabber,IGrabber" />                   
                                                                         
            </service>
            <service>
                  <activated type="ImageGrabber.ImageGrabber,ImageGrabber" />          
                                                         
            </service>
            <service>
                 <activated type="ImageGrabber.ITest,ITest" />                         
                                         
            </service>
            <channels>
                                <channel ref="tcp" port="8087">
                                        <serverProviders>
                                                <formatter ref="binary"/>
                                        </serverProviders>
                                </channel>
                                <channel ref="http" port="8088">
                                        <serverProviders>
                                                <formatter ref="soap"/>
                                        </serverProviders>
                                </channel>
            </channels>
        </application>
    </system.runtime.remoting>
</configuration>



<configuration>
    <system.runtime.remoting>
        <application name="IServer">
                <client url="tcp://localhost:8087/IServer">
                                <activated 
type="ImageGrabber.ImageGrabber,ImageGrabber" />
            </client>
            <client url="tcp://localhost:8087/IServer">
                                <activated type="ImageGrabber.ITest,ITest" />
            </client>
            <client url="tcp://localhost:8087/IServer">
                                <activated type="ImageGrabber.IGrabber,IGrabber" />
            </client>          
            <channels>
                                <channel ref="tcp" port="0">
                                        <clientProviders>
                                                <formatter ref="binary"/>
                                        </clientProviders>
                                </channel>
            </channels>                 
        </application>
    </system.runtime.remoting>
</configuration>

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to