Announcement

Collapse
No announcement yet.

Hilfe bei Server.Config

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hilfe bei Server.Config

    hallo

    könnte Jemand mir bitte einen Tipp bzw. Hinweis geben, wie ich folgende (Server) Quelle Codes(in C#) in Server.Config umwandlen bzw. eintragen kann.

    Code:
     SoapServerFormatterSinkProvider serverFormatter = new SoapServerFormatterSinkProvider();
                serverFormatter.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
    
                Hashtable ht = new Hashtable();
                ht["name"] = "ServerChannel";
                ht["port"] = 9001;
    danke

    Gruss

    Burkut

  • #2
    hallo
    ich habe inzwischen die serverseitige Konfiguration schon erstellt. Es scheint, dass es funktioniert( wenn ich im Client eigentliche Quellcode variante verwende, aber funktioniert nicht mit Client-Config im Unten).

    Hier ist die Server Config:
    HTML Code:
    <?xml version="1.0" encoding="utf-8" ?>
    
    <configuration>
      <system.runtime.remoting>
        <application>
          <channels>
            <channel ref ="http server" port ="9000"  >
             
                 <serverProviders>
                   <formatter ref="soap" typeFilterLevel="Full"/>
    
                 </serverProviders>
     
              </channel>
    
          </channels>
    
          <service >
            <wellknown  type ="RemoteObj.ClientToServerDialog, RemoteObj"
                        objectUri ="test"
                        mode ="Singleton" />
          </service>
        </application>
      </system.runtime.remoting>
    
    </configuration>
    der Client:

    HTML Code:
    <?xml version="1.0" encoding="utf-8" ?>
    
    <configuration>
      <system.runtime.remoting>
        <application>
          
          <client >
            <wellknown  type ="RemoteObj.ClientToServerDialog, RemoteObj"
                        url ="http://server:9000/test" />
          </client>
        </application>
      </system.runtime.remoting>
    
    </configuration>
    Es fehlt bestimmt bestimmt was in Client.Config. Das konnte ich nicht feststellen. Die Fehlermeldung ist:
    TCP-Channelprotokollverletzung: Präambel wird erwartet
    Zuletzt editiert von burkut; 22.09.2009, 10:08.

    Comment

    Working...
    X