Re: Remoting not remoting... I don't understand why
- From: "ThunderMusic" <NO.danlat.at.hotmail.com.SPAM>
- Date: Tue, 31 Jan 2006 22:31:21 -0500
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@xxxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxxxxx
>> 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
>>
>
>
.
Relevant Pages
- Help!!! Config files
... I have a business objects dll on my server containing ... I have created a config file to "advertise each of the ... On the client side I have created a config file ... (microsoft.public.dotnet.framework.remoting) - Re: .Net Remoting impass. Please help!
... > "An unhandled exception of type> 'System.Runtime.Serialization.SerializationException' occurred in> mscorlib.dll ... > And here's a copy of the client's config file:> ... Only thing is that I'm passing a> reference of the client to the server object in order to later on be able> to ... the application is running both> the server and the client on the same machine for now so it shouldn't have> anything to do with the network. ... (microsoft.public.dotnet.languages.csharp) - Re: cannot call non-public or static methods remotely
... > When the client starts and the user wants to write to database or files to ... > he can do that only when a service is running on the server with a ... > Now I have a config file when I try to connect it gives me this error. ... > Public Function GetSetting(ByVal Key As String) As String ... (microsoft.public.dotnet.framework.remoting) - Type Not Found
... design as suggested by Ingo Rammer in his advanced .net remoting book. ... referenced in the client project. ... The Server object is compiled to elantis_BUS.dll and contains the ... Server Config File ... (microsoft.public.dotnet.framework.remoting) - Re: Notes connector
... notes client has been installed. ... >>I can connect to the Notes server because the Notes client that is required ... >>by the connector is installed on the connector server and when you open the ... >>Failure to locate DefltPseudoDomain in config file ... (microsoft.public.exchange.admin) |
|