"ThunderMusic" wrote:
> Hi,
> For those who were seeking for the problem, you may be pleased to know we
> found the solution. In fact, I don't really know why it works, but now, it
> works (and seem to work fine, but I did not test myself, but did not have
> any more remarks about it, so I assume it works), we just transfered all the
> <service> part into the <Client> part into the client's config file, and now
> it works... we receive the transparent proxy objects and they seem to
> contain the information from the server (not local information), so I assume
> it's ok.
>
> Now I have another question... WHY? (the eternal one...) I mean, those
> objects are supposed to be server activated (or did I miss something?), so
> why must I put them into the <client> part of the client's config file while
> they are in the <service> part of the server's config file, shouldn't they
> be in the same part of the config file?!?
>
> Thanks to those who helped with the other posts (Serge Calderara & Oleksa)
>
> ThunderMusic
>
> "ThunderMusic" <NOdanlatSPAM@hotmaildotcom> a écrit dans le message de news:
> OMAH4leJGHA.3120@TK2MSFTNGP10.phx.gbl...
> > ok, I really need to know what's wrong, so I post the 2 configuration
> > files so you can see if everything is right (it seems to be)
> > TeamplateBLL.Client.config :
> > <configuration>
> > <system.runtime.remoting>
> > <application>
> > <client url="tcp://127.0.0.1:30520">
> > </client>
> > <service>
> > <activated type="Teamplate.BLL.BSession, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BModel, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BDocument, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BFileList, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BGroup, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BProcess, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BFolder, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BUser, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BUserList, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BWorkList, TeamplateBLL" />
> > <activated type="Teamplate.BLL.EFile, TeamplateBLL" />
> > <activated type="Teamplate.BLL.RecordList, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BSharePoint, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BExchangeDAV, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BTriggerManager, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BInfoPath, TeamplateBLL" />
> > <activated type="Teamplate.BLL.ModelDeployment, TeamplateBLL" />
> > </service>
> > </application>
> > </system.runtime.remoting>
> > </configuration>
> >
> > TeamplateBLL.exe.config : (the server)
> > <configuration>
> > <system.runtime.remoting>
> > <application>
> > <lifetime leaseTime="5M" sponsorshipTimeout="5M" renewOnCallTime="2M"
> > leaseManagerPollTime="5M"/>
> >
> > <channels>
> > <channel ref="tcp" port="30520" machineName="localhost">
> > <serverProviders>
> > <formatter ref="binary" typeFilterLevel="Full" />
> > </serverProviders>
> > </channel>
> > <channel ref="http" port="30521" machineName="localhost" />
> > </channels>
> >
> > <service>
> > <activated type="Teamplate.BLL.BSession, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BModel, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BDocument, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BFileList, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BGroup, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BProcess, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BFolder, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BUser, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BUserList, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BWorkList, TeamplateBLL" />
> > <activated type="Teamplate.BLL.EFile, TeamplateBLL" />
> > <activated type="Teamplate.BLL.RecordList, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BSharePoint, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BExchangeDAV, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BTriggerManager, TeamplateBLL" />
> > <activated type="Teamplate.BLL.BInfoPath, TeamplateBLL" />
> > <activated type="Teamplate.BLL.ModelDeployment, TeamplateBLL" />
> > </service>
> > </application>
> > </system.runtime.remoting>
> > </configuration>
> >
> > The server seems to respond right in telnet and in IE (well, it gives an
> > error because the protocol is not respected, but at least it does
> > something).
> >
> > I found this post and I'm pretty sure the problem is in the config files,
> > but I can't see where....
> >
http://groups.google.fr/group/microsoft.public.dotnet.framework.remoting/browse_thread/thread/2d783c784fa7694c/6d44ed8454430761?lnk=st&q=%2B%22remoting%22+%2B%22local+object%22&rnum=7&hl=fr#6d44ed8454430761
> >
> > Please help!!
> >
> > thanks
> >
> > ThunderMusic
> >
> >
> > "ThunderMusic" <NOdanlatSPAM@hotmaildotcom> wrote in message
> > news:upXSwOeJGHA.2828@TK2MSFTNGP12.phx.gbl...
> >> Hi,
> >> I have a service that accepts remoting connections. On the other hand, I
> >> have a client application that wants to connect to the service and get
> >> new objects. The problem is that when I try to instanciate a remote
> >> object, I always get a local object. I should receive a proxy, but I
> >> receive a local instance. I tried loading the configuration file just
> >> before my first call to the object without success.
> >>
> >> Here is the code I'm using right now :
> >>
> >> string path =
> >> System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"TeamplateBLL.Client.config");
> >> System.Runtime.Remoting.RemotingConfiguration.Configure(path);
> >> Teamplate.BLL.BUserList bu = new Teamplate.BLL.BUserList();
> >> try
> >> {
> >> string x = bu.GetActiveDirectoryRecords();
> >> System.Windows.Forms.MessageBox.Show(x);
> >> }
> >> catch (Exception ex)
> >> {
> >> System.Windows.Forms.MessageBox.Show(ex.ToString());
> >> }
> >>
> >> the 'bu' object should be a proxy but instead it is a local
> >> Teamplate.BLL.BUserList object... The method succeed, but local, not
> >> remote... Is there a possible source from here to get a solution or will
> >> you need the configuration files?
> >>
> >> Thanks
> >>
> >> ThunderMusic
> >>
> >
> >
>
>