Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Problem with TCP in a derived UserControl

Problem with TCP in a derived UserControl

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpquestioncsharpsysadminsecurity
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tim Kohler
    wrote on last edited by
    #1

    I'm creating a prototype and have a simple control that I've derived from System.Windows.Forms.UserControl. I intend to be able to use this control in both a windows form client as well as to imbed it in a web page. In order to get data into the control, I'm opening a tcp connection to my app server and requesting data, I am very familiar with tcp and have no problems there. Everything is working perfectly when I put the control into a windows form app. My issue comes up when I plug the control into a web page. Now, I have configured the .NET CAS properly to grant appropriate permissions to the code using strong name evidence so I don't think I have a security problem with CAS. But, I send in the tcp request from the web page, I am able to connect (I see the syn - syn/ack - ack in my sniffer) but then several requests are issued from my host to NETLOGON and some to port 445 (Microsoft directory services). Eventually (over 90 seconds later), my request completes (with my host sending psh-ack and getting fin-psh-ack) as expected. I just can't understand why the control is querying port 445 or what is going on. I don't see why my request is taking 90+ seconds from the time my connection opens until my request goes to the server...?? Any of you run across this before or have any suggestions? thanks Tim

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups