Re: Cannot Get XML Config file to Work



> To my surprise, when I configure my client
> programmatically, everything works.
> <wellknown type="JobServerLib.IJobServer, JobLib"
> url="http://localhost:4000/JobURI";></wellknown>

Interesting. I wonder how you create an instance of an Interface.

perhaps the config line should be
<wellknown type="JobServerLib.JobServerImplementation, JobLib"
url="http://localhost:4000/JobURI";></wellknown>

Guido

"Ali" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:088c01c54761$c95248e0$a501280a@xxxxxxxxxx
> Hi,
>
> For some reason, I am not able to configure my client's
> configuration using xml. I get the following error:
>
> .Config file ..\..\ConsoleJobClient.exe.config can not be
> read successfully due to exception
> System.Runtime.Remoting.RemotingException: channel
> entries must contain a type attribute of the
> form 'typeName, assemblyName'.
>
> This is the content of my ConsoleJobClient.exe.config
> file:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <system.runtime.remoting>
> <application name="JobClient">
> <client>
> <wellknown
> type="JobServerLib.IJobServer, JobLib"
> url="http://localhost:4000/JobURI";></wellknown>
> </client>
> <channels>
> <channel href="http"
> port="0"></channel>
> </channels>
> </application>
> </system.runtime.remoting>
> </configuration>
>
> To my surprise, when I configure my client
> programmatically, everything works. I even confirmed it
> watching netstat -a -b -n -p TCP.
>
> Here is my programmatic configuration:
>
> HttpChannel clientChannel = new
> HttpChannel(0);
> ChannelServices.RegisterChannel
> (clientChannel);
>
> WellKnownClientTypeEntry
> remoteType = new WellKnownClientTypeEntry(typeof
> (IJobServer), "http://localhost:4000/JobURI";);
>
> RemotingConfiguration.RegisterWellKnownClientType
> (remoteType);
>
>
> Please help.


.



Relevant Pages

  • Can create server programmatically, but not with config file....
    ... I've been able to encapsulate the client side configuration ... into a config file, ... HttpChannel chnl = new HttpChannel(props, clientProv, serverProv); ... I've checked that the config file is indeed where I think it is, ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: 2.6.22-rc6-mm1
    ... from 22-rc4-mm2, and it behaved just fine, much to my surprise. ... That's probably because your old config file was relatively recent, ... All my .configs have mouldered since I lost the ability to have .config be ... I am heading for vacation for 20 days without Internet (real vacation :-)) ...
    (Linux-Kernel)
  • Re: Character set conversion (through ssh)
    ... different config file or to set config options on the command line. ... but vim still assumes utf8 files. ... client, and then I don't want the .bashrc stuff, but well, it's good enough ...
    (comp.unix.shell)
  • Re: Remoting not remoting... I dont understand why
    ... Server config: ... > could you please post your client and server config file, ... >> why must I put them into the part of the client's config file ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: 2.6.22-rc6-mm1
    ... from 22-rc4-mm2, and it behaved just fine, much to my surprise. ... That's probably because your old config file was relatively recent, ... All my .configs have mouldered since I lost the ability to have .config be ... a symlink to a revision-controlled file (used to carry a custom patch for ...
    (Linux-Kernel)