473,382 Members | 1,657 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

My Winform application UI hang after taking remote control.

My Winform application run on machine A. After sometime when i took remote control of machine A from machine B. I saw my application execute my script but application UI is in hung state.

So I used WinDbg(x64) for debug i saw application main thread is stuck with this log

Expand|Select|Wrap|Line Numbers
  1.  
  2. ntdll.dll!NtWaitForSingleObject+0xa
  3. mswsock.dll!WSPStartup+0x8cd5
  4. mswsock.dll!WSPStartup+0xad4e
  5. ws2_32.dll!recv+0x13c
  6. [Native Frame: IL Method without Metadata]
  7. [Managed to Unmanaged Transition]
  8. System.dll!System.Net.Sockets.Socket.Receive+0xfa
  9. System.dll!System.Net.Sockets.Socket.Receive+0x28
  10. System.Runtime.Remoting.dll!System.Runtime.Remoting.Channels.SocketStream.Read+0x34
  11. System.dll!System.Net.StreamFramer.ReadMessage+0x4d
  12. System.dll!System.Net.Security.NegoState.StartReceiveBlob+0x1e
  13. System.dll!System.Net.Security.NegoState.StartSendBlob+0x4bb
  14. System.dll!System.Net.Security.NegoState.ProcessAuthentication+0xc4
  15. System.dll!System.Net.Security.NegotiateStream.AuthenticateAsClient+0x22
  16. System.Runtime.Remoting.dll!System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.CreateAuthenticatedStream+0xca
  17. System.Runtime.Remoting.dll!System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.CreateSocketHandler+0x47
  18. System.Runtime.Remoting.dll!System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket+0xd0
  19. System.Runtime.Remoting.dll!System.Runtime.Remoting.Channels.SocketCache.GetSocket+0x1bc
  20. System.Runtime.Remoting.dll!System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry+0x162
  21. System.Runtime.Remoting.dll!System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.AsyncProcessRequest+0x27
  22. System.Runtime.Remoting.dll!System.Runtime.Remoting.Channels.BinaryClientFormatterSink.AsyncProcessMessage+0xa8
  23. mscorlib.dll!System.Runtime.Remoting.Messaging.ClientContextTerminatorSink.AsyncProcessMessageCallback+0x79
  24. [Unmanaged to Managed Transition]
  25. clr.dll+0xa7f3
  26. clr.dll+0xa6de
  27. clr.dll!CopyPDBs+0x288b
  28. clr.dll!CopyPDBs+0x2aa2
  29. clr.dll!CreateApplicationContext+0x1b3e
  30. [Managed to Unmanaged Transition]
  31. mscorlib.dll!System.Runtime.Remoting.Messaging.ClientContextTerminatorSink.AsyncProcessMessage+0x29c
  32. mscorlib.dll!System.Runtime.Remoting.Messaging.EnvoyTerminatorSink.AsyncProcessMessage+0xdc
  33. mscorlib.dll!System.Runtime.Remoting.Proxies.RemotingProxy.InternalInvokeAsync+0xf6
  34. mscorlib.dll!System.Runtime.Remoting.Proxies.RemotingProxy.InternalInvoke+0x5f2
  35. mscorlib.dll!System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke+0x1f4
  36. [Unmanaged to Managed Transition]
  37. clr.dll+0x17292
  38. clr.dll!CreateApplicationContext+0x137a8
  39. clr.dll!CreateApplicationContext+0x2456
  40. clr.dll+0x17194
  41. [Managed to Unmanaged Transition]
  42. Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run+0x648
  43. ExecutionAgent.exe!Cres.Execution.Agent.My.MyApplication.Main+0x5e
  44. [Unmanaged to Managed Transition]
  45. clr.dll+0xa7f3
  46. clr.dll+0xa6de
  47. clr.dll+0xae76
  48. clr.dll!CorExeMain+0x35e9
  49. clr.dll!CorExeMain+0x392e
  50. clr.dll!CorExeMain+0x3827
  51. clr.dll!CorExeMain+0x37aa
  52. clr.dll!CorExeMain+0x3702
  53. clr.dll!CorExeMain+0x14
  54. mscoreei.dll!CorExeMain+0x5d
  55. MSCOREE.DLL!CorExeMain+0x69
  56. KERNEL32.dll!BaseThreadInitThunk+0xd
  57. ntdll.dll!RtlUserThreadStart+0x21
  58.  
  59.  
Any ideas on what is causing this problem.

Thanks
Nov 20 '17 #1
2 2894
Using STR when i connect or disconnect remote control application UI hang. I have another logs when i debug using WinDbg(x64)

Expand|Select|Wrap|Line Numbers
  1. ntdll.dll!ZwWaitForMultipleObjects+0x14
  2. KERNELBASE.dll!WaitForMultipleObjectsEx+0xf0
  3. USER32.dll!MsgWaitForMultipleObjectsEx+0x1e0
  4. combase.dll!Ordinal111+0x63b
  5. combase.dll!CoGetCurrentLogicalThreadId+0x20f
  6. combase.dll!CoWaitForMultipleHandles+0xb3
  7. clr.dll!MetaDataGetDispenser+0xcd4a
  8. clr.dll!MetaDataGetDispenser+0xccb4
  9. clr.dll!MetaDataGetDispenser+0x76efd
  10. clr.dll!MetaDataGetDispenser+0x8f4d5
  11. [Managed to Unmanaged Transition]
  12. mscorlib.dll!System.Threading.WaitHandle.InternalWaitOne+0x1b
  13. mscorlib.dll!System.Threading.WaitHandle.WaitOne+0x2e
  14. System.Windows.Forms.dll!System.Windows.Forms.Control.WaitForWaitHandle+0x1ed
  15. System.Windows.Forms.dll!System.Windows.Forms.Control.MarshaledInvoke+0x431
  16. System.Windows.Forms.dll!System.Windows.Forms.Control.Invoke+0x60
  17. System.Windows.Forms.dll!System.Windows.Forms.WindowsFormsSynchronizationContext.Send+0x74
  18. System.dll!SystemEventInvokeInfo.Invoke+0x9c
  19. System.dll!Microsoft.Win32.SystemEvents.RaiseEvent+0x129
  20. System.dll!Microsoft.Win32.SystemEvents.OnDisplaySettingsChanging+0x76
  21. System.dll!Microsoft.Win32.SystemEvents.WindowProc+0x272
  22. [Unmanaged to Managed Transition]
  23. [Native Frame: IL Method without Metadata]
  24. clr.dll+0x21fe
  25. USER32.dll!CallWindowProcW+0x4d0
  26. USER32.dll!DispatchMessageW+0x1af
  27. [Native Frame: IL Method without Metadata]
  28. [Managed to Unmanaged Transition]
  29. System.Windows.Forms.dll!ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop+0x33e
  30. System.Windows.Forms.dll!ThreadContext.RunMessageLoopInner+0x1c6
  31. System.Windows.Forms.dll!ThreadContext.RunMessageLoop+0x51
  32. Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun+0xa5
  33. Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel+0x95
  34. Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run+0x3ca
  35. ExecutionAgent.exe!Execution.Agent.My.MyApplication.Main+0x64
  36. [Unmanaged to Managed Transition]
  37. clr.dll!LogHelp_LogAssert+0x1bf3
  38. clr.dll!LogHelp_LogAssert+0x1ac5
  39. clr.dll!LogHelp_LogAssert+0x27cd
  40. clr.dll!SetRuntimeInfo+0x1580
  41. clr.dll!SetRuntimeInfo+0x1dca
  42. clr.dll!SetRuntimeInfo+0x1c87
  43. clr.dll!SetRuntimeInfo+0x161d
  44. clr.dll!SetRuntimeInfo+0x1402
  45. clr.dll!CorExeMain+0x14
  46. mscoreei.dll!CorExeMain+0x6d
  47. MSCOREE.DLL!CorExeMain+0x6c
  48. KERNEL32.dll!BaseThreadInitThunk+0x14
  49. ntdll.dll!RtlUserThreadStart+0x21
  50.  
Nov 22 '17 #2
Frinavale
9,735 Expert Mod 8TB
Well there is a problem getting data across your network (sockets).

I'm not 100% sure what is causing this but the first thing I would check is permissions.

Make sure that the users are permitted to use the resources necessary to run the application across the network like this.

The reason I suspect permissions is because, in your first post, you are having problems receiving data in the ProcessAuthentication method...

Sorry I can't be much more help.
Nov 28 '17 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: BadOmen | last post by:
I have just ordered a IR remote control that uses a serial port. This is the one: http://www.rbmods.com/Articles/Eksitdata/IRremote/1.php There is some program out there I can use to con troll...
0
by: charbonneau | last post by:
I need to develop a WinForm application which can play .mp3 music files stored on another machine on a LAN. This applicaiton needs to run on servaral different client machines at the same time. I...
1
by: Pramod Thewarkar | last post by:
Hi, I have deployed my winform application on iis server in a virtual directory. On the start of my application, it is reading some information from the config file (app.config). When i am...
9
by: Dayne | last post by:
I need to have a auto timeout feature for a webform application(vb.net). Basically, I want to close the application if the user does not have a keyboard or mouse input after a specific period of...
0
by: Cenray | last post by:
How to generate a web request from a Winform Application using a WebService? In a C# Windows Application, when I try to genrate a web request using the following code, it is woking fine ...
1
by: Matthias Kwiedor | last post by:
Hello! Is there a way in "c#" to remote control another application on the same pc running at the same time. For example Clicking on a button. The Application which should be controled is not...
1
by: Ollie Riches | last post by:
Does anyone know a way to create a winform window that has similiar functionality to the 'Output' window in VS .Net - i.e. that basically acts like a console window but is proper MDI child of the...
0
by: Hrvoje Vrbanc | last post by:
Hello all! What would be the most convenient way to deploy a locally developed ASP.NET application on a remote server that has .NET Framework (correct version) installed but I don't have any...
0
by: =?Utf-8?B?U2VudGhpbCBTdWJyYW1hbmlhbg==?= | last post by:
Our requirement is to run the vb dot net application in minimize mode with system tray icon in the remote machine (remote desktop). When we running in the remote desktop window is showing in...
1
by: neelsfer | last post by:
Please help - how do i solve this? I have a timing application for running and cycling. A client want me to add on a feature for school track athletics. Currently they have 8 persons sitting...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.