Click here to Skip to main content
15,899,025 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questioninterface and abstract class Pin
Member 47080775-Feb-08 18:43
Member 47080775-Feb-08 18:43 
GeneralRe: interface and abstract class Pin
Giorgi Dalakishvili5-Feb-08 20:38
mentorGiorgi Dalakishvili5-Feb-08 20:38 
GeneralRe: interface and abstract class Pin
bwilhite8-Feb-08 3:41
bwilhite8-Feb-08 3:41 
GeneralRe: interface and abstract class Pin
Mark Churchill8-Feb-08 17:06
Mark Churchill8-Feb-08 17:06 
GeneralRe: interface and abstract class Pin
bwilhite9-Feb-08 3:32
bwilhite9-Feb-08 3:32 
Questionerror handling in sql server 2000 Pin
Member 47080775-Feb-08 18:42
Member 47080775-Feb-08 18:42 
GeneralRe: error handling in sql server 2000 Pin
pmarfleet5-Feb-08 21:44
pmarfleet5-Feb-08 21:44 
GeneralRemoting config file Pin
bwilhite5-Feb-08 4:39
bwilhite5-Feb-08 4:39 
I'm trying to move from programmatic configuration of remoting to using a config file, but I can't seem to get the config file to work.

Here's the relevant programmatic code (server side)...
<br />
            BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider();<br />
            serverProv.TypeFilterLevel =System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;<br />
            BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider();<br />
            IDictionary props = new Hashtable();<br />
            props["port"] = 8000;<br />
            // Create and register an TCP channel<br />
            TcpChannel serviceChannel = new TcpChannel(props, clientProv, serverProv);<br />
            ChannelServices.RegisterChannel(serviceChannel, true);<br />
            // Expose an object<br />
            AccountConnectionService service = new AccountConnectionService();<br />
            RemotingServices.Marshal(service, "myService", typeof(IAccountConnectionService));<br />


This works just fine.

Here's my .config file...

<br />
configuration<br />
  system.runtime.remoting<br />
    application<br />
      service<br />
        wellknown type="Common.AccountConnectionService,Common"<br />
                   mode="Singleton" objectUri="myService"<br />
        wellknown<br />
      service<br />
      channels<br />
        channel ref="tcp" port="8000"<br />
      channels<br />
      serverproviders<br />
        formatter ref="binary" typefilterlevel="Full" <br />
      serverproviders<br />
      clientprovider<br />
        formatter ref="binary" typefilterlevel="Full"<br />
      clientprovider<br />
    application<br />
  system.runtime.remoting<br />
configuration<br />


This doesn't work. It throws an "Authentication Exception" because the transport connection was closed. I'm not sure what the difference is or what I'm missing. I checked out the MSDN documentation, but tbh I couldn't make heads or tails of it. (I've cobbled this config together from various tutorials.) I don't think this should matter, but I'm still using programmatic configuration on the client side, I can post that code also if it helps. Any help is much appreciated.

BW

p.s. I apologize for the config looking ugly. The xml was getting messed up in the post, and I couldn't figure out how to make it look right.
GeneralRe: Remoting config file Pin
bwilhite8-Feb-08 3:47
bwilhite8-Feb-08 3:47 
GeneralVisual Studio style UI Pin
DanB19835-Feb-08 1:37
DanB19835-Feb-08 1:37 
GeneralRe: Visual Studio style UI Pin
TJoe5-Feb-08 3:04
TJoe5-Feb-08 3:04 
GeneralRe: Visual Studio style UI Pin
DanB19838-Feb-08 1:30
DanB19838-Feb-08 1:30 
GeneralConversion of vb.net to java Pin
Rasal doss Solomon5-Feb-08 1:05
Rasal doss Solomon5-Feb-08 1:05 
GeneralRe: Conversion of vb.net to java Pin
Guffa5-Feb-08 1:24
Guffa5-Feb-08 1:24 
GeneralThe property grid in the WPF designer Pin
jesarg4-Feb-08 11:47
jesarg4-Feb-08 11:47 
GeneralRe: The property grid in the WPF designer Pin
TJoe5-Feb-08 2:39
TJoe5-Feb-08 2:39 
GeneralRe: The property grid in the WPF designer Pin
jesarg5-Feb-08 5:24
jesarg5-Feb-08 5:24 
GeneralRe: The property grid in the WPF designer Pin
TJoe5-Feb-08 5:30
TJoe5-Feb-08 5:30 
QuestionCleaning up resouces in a WPF application Pin
Simon P Stevens4-Feb-08 3:46
Simon P Stevens4-Feb-08 3:46 
AnswerRe: Cleaning up resouces in a WPF application Pin
TJoe5-Feb-08 2:55
TJoe5-Feb-08 2:55 
GeneralRe: Cleaning up resouces in a WPF application Pin
Simon P Stevens5-Feb-08 23:15
Simon P Stevens5-Feb-08 23:15 
GeneralRe: Cleaning up resouces in a WPF application Pin
TJoe6-Feb-08 2:14
TJoe6-Feb-08 2:14 
GeneralRe: Cleaning up resouces in a WPF application Pin
Simon P Stevens6-Feb-08 10:33
Simon P Stevens6-Feb-08 10:33 
GeneralXAML/WPF rotation of a textbox Pin
Don Rolando3-Feb-08 22:57
Don Rolando3-Feb-08 22:57 
GeneralRe: XAML/WPF rotation of a textbox Pin
TJoe4-Feb-08 9:45
TJoe4-Feb-08 9:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.