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. ClientServer app worked under XP but not Windows 7

ClientServer app worked under XP but not Windows 7

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdatabasesql-serversysadminquestion
5 Posts 2 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.
  • N Offline
    N Offline
    Nigel Mackay
    wrote on last edited by
    #1

    Using .NET 3.5, SQL Server 2005 and C# 2008 Express. Server creates instances of the server-side code. Worked fine under XP. Upgraded to Windows 7 and the remote calls hang. If I add code to my client which accesses the database directly (inserted before it does the remote call, it works. But not remotely through the server. Is there something I should know about SQL Server/.NET/Windows 7?

    L 1 Reply Last reply
    0
    • N Nigel Mackay

      Using .NET 3.5, SQL Server 2005 and C# 2008 Express. Server creates instances of the server-side code. Worked fine under XP. Upgraded to Windows 7 and the remote calls hang. If I add code to my client which accesses the database directly (inserted before it does the remote call, it works. But not remotely through the server. Is there something I should know about SQL Server/.NET/Windows 7?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The information you provided is not enough. What is your app doing and where does it hang ? And what does remote call mean, WCF, Web Service or a remoting component ?

      N 2 Replies Last reply
      0
      • L Lost User

        The information you provided is not enough. What is your app doing and where does it hang ? And what does remote call mean, WCF, Web Service or a remoting component ?

        N Offline
        N Offline
        Nigel Mackay
        wrote on last edited by
        #3

        Not clued up on terminology, so will give examples. The first step that the app does is collect the username and logon, and then check if they are in the database. I am using interfaces to the server-side code, and the server creates instances of the code like this

        UserList insUserList = UserList.Instance;
        ObjRef refUserList = RemotingServices.Marshal(insUserList, "UserList");

        The client does a call like this

        private IUserList rmUserList;
        rmUserList = (IUserList)Activator.GetObject
        (typeof(IUserList),
        System.Configuration.ConfigurationManager.AppSettings["UserListUrl"]);
        logonReturnValue = rmAllUserList.Logon(PasswordString);

        UserListUrl is tcp://localhost:50050/UserList On the server side it does (through calls to a pool of common routines, also on the server.

        cnStr = "Data Source='NIGEL-PC\\SQLEXPRESS';" +
        "Trusted_Connection=true;" +
        "Database=timesheet";
        cn = new SqlConnection(cnStr);
        cmd = new SqlCommand("", cn);
        da = new SqlDataAdapter();
        cmd.CommandText = "SELECT Password " +
        "FROM UserList " +
        "WHERE UserID = 12 ";
        da.SelectCommand = cmd;
        tmpDS = new DataSet();
        da.Fill(tmpDS, "Data");

        If I run the above code snippet in ClientLogon it works. If I allow it to do the remote call, it hangs.

        1 Reply Last reply
        0
        • L Lost User

          The information you provided is not enough. What is your app doing and where does it hang ? And what does remote call mean, WCF, Web Service or a remoting component ?

          N Offline
          N Offline
          Nigel Mackay
          wrote on last edited by
          #4

          More info: On the server side, I created a routine that only returns a string "OK", with no data access. Still hangs, so it is definitely the remoting bit, not the data access.

          N 1 Reply Last reply
          0
          • N Nigel Mackay

            More info: On the server side, I created a routine that only returns a string "OK", with no data access. Still hangs, so it is definitely the remoting bit, not the data access.

            N Offline
            N Offline
            Nigel Mackay
            wrote on last edited by
            #5

            If anyone is interested, the problem was with Comodo Internet Security, even when diasabled.

            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