IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Windows Communication Foundation .NET Discussion :

Bug API WCF quand ensuresecurity et à true


Sujet :

Windows Communication Foundation .NET

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Mai 2011
    Messages
    905
    Détails du profil
    Informations personnelles :
    Localisation : France, Vienne (Poitou Charente)

    Informations forums :
    Inscription : Mai 2011
    Messages : 905
    Points : 85
    Points
    85
    Par défaut Bug API WCF quand ensuresecurity et à true
    Bonjour ,

    J'ai un projet client/serveur fonctionne en local ,mais pas en distant
    quand ensuresecurity de la méthode RegisterChannel est à true


    Pour préciser : j'ai l'exception au niveau client :
    Exception non gérée*: System.Security.Authentication.InvalidCredentialException:
    Le serveur a rejeté les informations d'identification du client. ---> System.Co
    mponentModel.Win32Exception: La tentative d'ouverture de session a échoué
    --- Fin de la trace de la pile d'exception interne ---

    Server stack trace:
    à System.Net.Security.NegoState.ProcessReceivedBlob(Byte[] message, LazyAsync
    Result lazyResult)
    à System.Net.Security.NegoState.StartReceiveBlob(LazyAsyncResult lazyResult)
    à System.Net.Security.NegoState.CheckCompletionBeforeNextReceive(LazyAsyncRes
    ult lazyResult)
    à System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult
    lazyResult)
    à System.Net.Security.NegoState.CheckCompletionBeforeNextSend(Byte[] message,
    LazyAsyncResult lazyResult)
    à System.Net.Security.NegoState.ProcessReceivedBlob(Byte[] message, LazyAsync
    Result lazyResult)
    à System.Net.Security.NegoState.StartReceiveBlob(LazyAsyncResult lazyResult)
    à System.Net.Security.NegoState.CheckCompletionBeforeNextReceive(LazyAsyncRes
    ult lazyResult)
    à System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult
    lazyResult)
    à System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyRes
    ult)
    à System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential
    credential, ChannelBinding binding, String targetName, ProtectionLevel requiredP
    rotectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
    à System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential
    credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImp
    ersonationLevel allowedImpersonationLevel)
    à System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.CreateAuthentic
    atedStream(Stream netStream, String machinePortAndSid)
    à System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.CreateSocketHan
    dler(Socket socket, SocketCache socketCache, String machinePortAndSid)
    à System.Runtime.Remoting.Channels.SocketCache.CreateSocketHandler(Socket soc
    ket, String machineAndPort)
    à System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint
    ipEndPoint)
    à System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
    à System.Runtime.Remoting.Channels.RemoteConnection.GetSocket()
    à System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAn
    dSid, Boolean openNew)
    à System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWith
    Retry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
    à System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(
    IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransport
    Headers& responseHeaders, Stream& responseStream)
    à System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessa
    ge(IMessage msg)

    Exception rethrown at [0]:
    à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqM
    sg, IMessage retMsg)
    à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDat
    a, Int32 type)
    à ShareProgram.ICI1Server.retournemoihelloworld()
    à ClientApp.Program.Main(String[] args) dans E:\source\projet\recherche\c#\re
    seauquibug\ClientApp\Program.cs:ligne 21
    Quand je met ensuresecurity à false ça semble fonctionner

    Merci
    je vous joint le source.

    Sinon comment crypter les paquets réseaux propre à mon projet ?
    Fichiers attachés Fichiers attachés

Discussions similaires

  1. Erreur 0x8024402F sur Windows update
    Par Mut dans le forum Windows Serveur
    Réponses: 7
    Dernier message: 02/12/2007, 15h02
  2. problème windows update
    Par volontier dans le forum Windows
    Réponses: 5
    Dernier message: 30/05/2006, 16h30
  3. problème windows update
    Par volontier dans le forum Windows XP
    Réponses: 4
    Dernier message: 30/05/2006, 15h32
  4. Notification de redémarrage après windows Update.
    Par genialk2000 dans le forum Sécurité
    Réponses: 2
    Dernier message: 22/02/2006, 15h12
  5. Windows Update impossible, problème installation WGA
    Par iubito dans le forum Windows XP
    Réponses: 3
    Dernier message: 16/12/2005, 08h58

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo