Can create server programmatically, but not with config file....



Odd. I'm using VS2005 to build a remoting infrastructure, which is working
absolutely fine. I've been able to encapsulate the client side configuration
into a config file, but not the server side. I've been looking at this for
hours.

==================================
This works

Main

BinaryServerFormatterSinkProvider serverProv = new
BinaryServerFormatterSinkProvider();
serverProv.TypeFilterLevel =
System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
BinaryClientFormatterSinkProvider clientProv = new
BinaryClientFormatterSinkProvider();
IDictionary props = new Hashtable();
props["port"] = 7556;
HttpChannel chnl = new HttpChannel(props, clientProv, serverProv);
ChannelServices.RegisterChannel(chnl, false);
RemotingConfiguration.RegisterWellKnownServiceType
(typeof(ClientObjFactory), "factory.soap", WellKnownObjectMode.Singleton);

==============================
This fails
Main
-----
string configFilePath =
System.IO.Path.Combine(System.Environment.CurrentDirectory,
"server.exe.config");
RemotingConfiguration.Configure(configFilePath, false);

In Config file("server.exe.config")
---------------------------------
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown
mode ="Singleton"
type ="Arrow.ClientObjFactory, ACommon"
objectURI ="factory.soap"/>
</service>
<channels>
<channel ref="http" port="7556" useDefaultCredentials="true">
<serverProviders>
<provider ref="wsdl" />
<formatter ref="soap" typeFilterLevel="Full" />
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>

Error is
"No connection could be made because the target machine actively refused it"
(10061).

I've checked that the config file is indeed where I think it is, and it
is....

Client config file is
------------------
<configuration>
<system.runtime.remoting>
<application>
<client>
<wellknown
type ="Arrow.IClientObjFactory, ACommon"
url ="http://localhost:7556/factory.soap"; />
</client>
<channels>
<channel ref="http" port="0">
<clientProviders>
<formatter ref="binary"/>
</clientProviders>
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>


.



Relevant Pages

  • RE: Need for programmatic config:timeToleranceInSeconds, MaxReques
    ... un-conventional - after such point when Excel has been redone in managed ... MaxReques ... application config file for our client DLL, that is invoked as an add-in to ... Our client group attempted this without success. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: SV: [SLE] Citrix client on SuSE 9.0
    ... This looks more like a browser config issue ... Basically conqueror doesn't know to use the ica client for all ... Subject: SV: Citrix client on SuSE 9.0 ...
    (SuSE)
  • Re: Slow opening of files
    ... will post the IP config tomorrow when I can access a workstation, ... if they open the file via the Office App itself the file opens ... The client has a member server and the same ...
    (microsoft.public.windows.server.sbs)
  • RE: Need for programmatic config:timeToleranceInSeconds, MaxReques
    ... using reflection, but only in principle. ... Our client group attempted this without success. ... creating a config file that they specifically query ... Is there a way to set timeToleranceInSeconds programmatically? ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: what to do with local and remote users for a SBS Network?
    ... I have a client with nearly the same configuration you describe: ... * The laptop user also has one of the desktops, ... Outlook on desktops ... Here is the current config: ...
    (microsoft.public.windows.server.sbs)

Loading