Click here to Skip to main content
15,900,973 members
Home / Discussions / C#
   

C#

 
GeneralRe: Threaded library design Pin
Luc Pattyn18-Jan-08 1:52
sitebuilderLuc Pattyn18-Jan-08 1:52 
GeneralRe: Threaded library design Pin
invictus320-Jan-08 7:01
invictus320-Jan-08 7:01 
GeneralRe: Threaded library design Pin
Luc Pattyn20-Jan-08 10:21
sitebuilderLuc Pattyn20-Jan-08 10:21 
GeneralRe: Threaded library design Pin
invictus320-Jan-08 10:38
invictus320-Jan-08 10:38 
GeneralRe: Threaded library design Pin
GuyThiebaut17-Jan-08 11:42
professionalGuyThiebaut17-Jan-08 11:42 
QuestionExcel Chart from Office 2002 Pin
springtime5417-Jan-08 10:39
springtime5417-Jan-08 10:39 
GeneralRe: Excel Chart from Office 2002 Pin
Paul Conrad17-Jan-08 13:30
professionalPaul Conrad17-Jan-08 13:30 
QuestionProblem with .Net-Remoting Pin
Opa Knack17-Jan-08 9:48
Opa Knack17-Jan-08 9:48 
Hi
I've got a problem with some security-settings while remoting with TcpChannels.

I've got a server and client. When the connection is estabilished and the client tries to run a method that is going to the server, the client throws the following exception:

************** Exception Text **************
System.Security.Authentication.AuthenticationException: A remote side security requirement was not fulfilled during authentication. Try increasing the ProtectionLevel and/or ImpersonationLevel. ---> System.ComponentModel.Win32Exception: The network logon failed
--- End of inner exception stack trace ---

Server stack trace:
at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.CreateAuthenticatedStream(Stream netStream, String machinePortAndSid)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.CreateSocketHandler(Socket socket, SocketCache socketCache, String machinePortAndSid)
at System.Runtime.Remoting.Channels.SocketCache.CreateSocketHandler(Socket socket, String machineAndPort)
at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Interface.IServer.test(String msg, IClient cO)
at Client.Form1.btnSend_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Client
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/Administrator/Desktop/Neuer%20Ordner/Client.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Interface
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/Administrator/Desktop/Neuer%20Ordner/Interface.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------


I created the following solution, that will be the network-engine for some projects (yes, there is a socket-connection too in that solution):
http://www.krifi-ware.de/ngame/networkengine.zip

There error only occurs, when the client is on a different machine than the server.
When server and client are running on the same machine, the error only occurs, when you are using an external IP (at my machine the Local-LAN IP and localhost (127.0.0.1) are working and the hamachi-IP (a VPN) is like the client is on an external machine).
GeneralDate Pin
simworld17-Jan-08 8:20
simworld17-Jan-08 8:20 
GeneralRe: Date Pin
Luc Pattyn17-Jan-08 8:53
sitebuilderLuc Pattyn17-Jan-08 8:53 
GeneralRe: Date Pin
PIEBALDconsult17-Jan-08 12:21
mvePIEBALDconsult17-Jan-08 12:21 
GeneralBitBlt Problem Pin
Richard Blythe17-Jan-08 7:56
Richard Blythe17-Jan-08 7:56 
GeneralRe: BitBlt Problem Pin
Guffa17-Jan-08 8:58
Guffa17-Jan-08 8:58 
GeneralRe: BitBlt Problem Pin
Skippums17-Jan-08 10:31
Skippums17-Jan-08 10:31 
GeneralConfiguration framework Pin
hansipet17-Jan-08 7:34
hansipet17-Jan-08 7:34 
GeneralRe: Configuration framework Pin
Gareth H17-Jan-08 10:24
Gareth H17-Jan-08 10:24 
GeneralRe: Configuration framework Pin
hansipet17-Jan-08 22:50
hansipet17-Jan-08 22:50 
GeneralCan't get 24 bit audio to play with directsound Pin
kshet2617-Jan-08 7:19
kshet2617-Jan-08 7:19 
GeneralRe: Can't get 24 bit audio to play with directsound Pin
martin_hughes17-Jan-08 9:15
martin_hughes17-Jan-08 9:15 
GeneralRe: Can't get 24 bit audio to play with directsound Pin
kshet2617-Jan-08 9:19
kshet2617-Jan-08 9:19 
GeneralRe: Can't get 24 bit audio to play with directsound Pin
martin_hughes17-Jan-08 9:27
martin_hughes17-Jan-08 9:27 
GeneralRe: Can't get 24 bit audio to play with directsound Pin
kshet2617-Jan-08 12:06
kshet2617-Jan-08 12:06 
GeneralRe: Can't get 24 bit audio to play with directsound Pin
Jammer31-Mar-08 10:53
Jammer31-Mar-08 10:53 
Generalvisual Studio 2005 class diagram Pin
netJP12L17-Jan-08 6:28
netJP12L17-Jan-08 6:28 
GeneralRe: visual Studio 2005 class diagram Pin
ChrisKo17-Jan-08 8:02
ChrisKo17-Jan-08 8:02 

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.